~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_join.py

Add simple test for WorkingTree.kind

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        self.assertEqual('subtree-root-id', sub_tree.path2id(''))
69
69
        self.assertEqual('', sub_tree.id2path('subtree-root-id'))
70
70
        self.assertIs(None, base_tree.path2id('subtree/file1'))
 
71
        base_tree.lock_read()
 
72
        self.addCleanup(base_tree.unlock)
71
73
        self.assertTrue('file1-id' not in base_tree)
72
74
        self.assertEqual('subtree-root-id', base_tree.path2id('subtree'))
73
75
        self.assertEqual('subtree', base_tree.id2path('subtree-root-id'))