~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_inv.py

(robertc) Introduce Tree interface implementation tests. This corrects behaviour differences in Tree implementations for the __iter__ interface which were revealed by the new tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
            inv.add_path(*args)
87
87
 
88
88
        self.assertEqual([
 
89
            ('', ROOT_ID),
89
90
            ('Makefile', 'makefile-id'),
90
91
            ('doc', 'doc-id'),
91
92
            ('src', 'src-id'),
108
109
            inv.add_path(*args)
109
110
 
110
111
        self.assertEqual([
 
112
            ('', ROOT_ID),
111
113
            ('Makefile', 'makefile-id'),
112
114
            ('doc', 'doc-id'),
113
115
            ('src', 'src-id'),