376
376
def test_checkout_convenience(self):
377
377
tree_a = self.make_branch_and_tree('a')
380
380
checkout_b.commit('rev1', rev_id='rev1')
381
381
self.assertEqual('rev1', branch_a.last_revision())
382
382
self.assertNotEqual(checkout_b.branch.base, branch_a.base)
386
385
checkout_c.commit('rev2', rev_id='rev2')
387
386
self.assertEqual('rev2', branch_a.last_revision())
388
387
self.assertEqual(checkout_c.branch.base, branch_a.base)
397
395
class ChrootedTests(TestCaseWithBranch):