70
70
os.rename('branch-1', 'branch-2')
71
71
to_branch = branch.Branch.open('branch-2')
72
72
# Check fails without --force
75
75
switch.switch, checkout.bzrdir, to_branch)
76
80
switch.switch(checkout.bzrdir, to_branch, force=True)
77
81
self.failIfExists('checkout/file-1')
78
82
self.failUnlessExists('checkout/file-2')