/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.py

Add AB1 test that new trees get unique root ids

Show diffs side-by-side

added added

removed removed

Lines of Context:
268
268
        self.assertEqual('revision-1', 
269
269
                         revision_tree.inventory['my-root-id'].revision)
270
270
 
 
271
    def test_unique_root_id_per_tree(self):
 
272
        # each time you initialize a new tree, it gets a different root id
 
273
        tree1 = self.make_branch_and_tree('tree1',
 
274
            format='experimental-knit3')
 
275
        tree2 = self.make_branch_and_tree('tree2',
 
276
            format='experimental-knit3')
 
277
        self.assertNotEqual(tree1.get_root_id(), tree2.get_root_id())
 
278
 
271
279
 
272
280
class TestFormat2WorkingTree(TestCaseWithTransport):
273
281
    """Tests that are specific to format 2 trees."""