71
71
to_branch = branch.Branch.open('branch-2')
72
72
# Check fails without --force
73
73
err = self.assertRaises((errors.NotBranchError,
75
75
switch.switch, checkout.bzrdir, to_branch)
76
76
switch.switch(checkout.bzrdir, to_branch, force=True)
77
77
self.failIfExists('checkout/file-1')