~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_index.py

  • Committer: Robert Collins
  • Date: 2007-10-05 04:57:03 UTC
  • mto: (2592.3.168 repository)
  • mto: This revision was merged to the branch mainline in revision 2908.
  • Revision ID: robertc@robertcollins.net-20071005045703-ndqi4np2zr4gu3jr
Opening an index creates a map for the parsed bytes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
366
366
        trans.put_bytes('name', "not an index\n")
367
367
        index = GraphIndex(trans, 'name', 13)
368
368
 
 
369
    def test_open_sets_parsed_map_empty(self):
 
370
        index = self.make_index()
 
371
        self.assertEqual([], index._parsed_byte_map)
 
372
 
369
373
    def test_iter_all_entries_empty(self):
370
374
        index = self.make_index()
371
375
        self.assertEqual([], list(index.iter_all_entries()))