135
144
self.assertEqual(tree2.branch.base, checkout.branch.get_bound_location())
137
146
def test_switch_revision(self):
144
148
checkout = tree.branch.create_checkout('checkout', lightweight=True)
145
149
self.run_bzr(['switch', 'branch-1', '-r1'], working_dir='checkout')
146
150
self.failUnlessExists('checkout/file-1')
147
151
self.failIfExists('checkout/file-2')
149
153
def test_switch_only_revision(self):
156
155
checkout = tree.branch.create_checkout('checkout', lightweight=True)
157
156
self.failUnlessExists('checkout/file-1')
158
157
self.failUnlessExists('checkout/file-2')