~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_inventory/basics.py

  • Committer: John Arbash Meinel
  • Date: 2009-09-24 20:09:36 UTC
  • mto: (4634.52.3 2.0)
  • mto: This revision was merged to the branch mainline in revision 4716.
  • Revision ID: john@arbash-meinel.com-20090924200936-g1iyerqko1bb6tel
Handle the case when the specific_fileids don't exist in this revision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
332
332
            ('src/sub/a', 'a-id'),
333
333
            ('src/zz.c', 'zzc-id'),
334
334
            ], [(path, ie.file_id) for path, ie in new_inv.iter_entries()])
 
335
 
 
336
    def test_inv_filter_entry_not_present(self):
 
337
        inv = self.prepare_inv_with_nested_dirs()
 
338
        new_inv = inv.filter(['not-present-id'])
 
339
        self.assertEqual([
 
340
            ('', 'tree-root'),
 
341
            ], [(path, ie.file_id) for path, ie in new_inv.iter_entries()])