/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/tree_implementations/test_tree.py

Merge with __contains__

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
                         output_order)
209
209
 
210
210
 
 
211
class TestHasId(TestCaseWithTree):
 
212
 
 
213
    def test_has_id(self):
 
214
        work_tree = self.make_branch_and_tree('tree')
 
215
        self.build_tree(['tree/file'])
 
216
        work_tree.add('file', 'file-id')
 
217
        tree = self._convert_tree(work_tree)
 
218
        tree.lock_read()
 
219
        self.addCleanup(tree.unlock)
 
220
        self.assertTrue(tree.has_id('file-id'))
 
221
        self.assertFalse(tree.has_id('dir-id'))
 
222
 
 
223
 
211
224
class TestExtras(TestCaseWithTree):
212
225
 
213
226
    def test_extras(self):