~lifeless/bzr/index.range_map

« back to all changes in this revision

Viewing changes to bzrlib/tests/tree_implementations/test_tree.py

  • Committer: Robert Collins
  • Date: 2008-06-19 01:17:19 UTC
  • mfrom: (3218.1.277 +trunk)
  • Revision ID: robertc@robertcollins.net-20080619011719-1c4g4uxzzhdls2wf
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
        finally:
122
122
            tree.unlock()
123
123
 
 
124
    def test_all_file_ids(self):
 
125
        work_tree = self.make_branch_and_tree('wt')
 
126
        tree = self.get_tree_no_parents_abc_content(work_tree)
 
127
        tree.lock_read()
 
128
        self.addCleanup(tree.unlock)
 
129
        self.assertEqual(tree.all_file_ids(),
 
130
                         set(['b-id', 'root-id', 'c-id', 'a-id']))
 
131
 
 
132
 
 
133
class TestStoredKind(TestCaseWithTree):
 
134
 
 
135
    def test_stored_kind(self):
 
136
        tree = self.make_branch_and_tree('tree')
 
137
        work_tree = self.make_branch_and_tree('wt')
 
138
        tree = self.get_tree_no_parents_abc_content(work_tree)
 
139
        tree.lock_read()
 
140
        self.addCleanup(tree.unlock)
 
141
        self.assertEqual('file', tree.stored_kind('a-id'))
 
142
        self.assertEqual('directory', tree.stored_kind('b-id'))
 
143
 
124
144
 
125
145
class TestFileContent(TestCaseWithTree):
126
146