~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-07-13 11:20:45 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070713112045-o30wjumnx9ueyoz4
Basic iter_entries working.

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
            set(index.iter_all_entries()))
251
251
 
252
252
    def test_iter_nothing_empty(self):
 
253
        index = self.make_index(1, nodes=[
 
254
            ('name', (['ref'], ), 'data'),
 
255
            ('ref', ([], ), 'refdata')])
 
256
        self.assertEqual(set([('name', (('ref',),), 'data'),
 
257
            ('ref', ((), ), 'refdata')]),
 
258
            set(index.iter_entries(['name', 'ref'])))
 
259
 
 
260
    def test_iter_all_keys(self):
253
261
        index = self.make_index()
254
262
        self.assertEqual([], list(index.iter_entries([])))
255
263