~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-09 13:55:20 UTC
  • mto: This revision was merged to the branch mainline in revision 5843.
  • Revision ID: jelmer@samba.org-20110509135520-8r5rgkjd30iunztg
Fix two warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
 
66
66
 
67
67
class MockTree(object):
 
68
 
68
69
    def __init__(self):
69
70
        from bzrlib.inventory import InventoryDirectory, ROOT_ID
70
71
        object.__init__(self)
75
76
 
76
77
    inventory = property(lambda x:x)
77
78
 
78
 
    def __iter__(self):
79
 
        return self.paths.iterkeys()
 
79
    def all_file_ids(self):
 
80
        return set(self.paths.keys())
80
81
 
81
82
    def __getitem__(self, file_id):
82
83
        if file_id == self.root.file_id: