~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_add.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:
228
228
        osutils.normalized_filename = osutils._accessible_normalized_filename
229
229
        try:
230
230
            smart_add_tree(self.wt, [u'a\u030a'])
231
 
            self.assertEqual([(u'\xe5', 'file')],
 
231
            self.assertEqual([('', 'root_directory'), (u'\xe5', 'file')],
232
232
                    [(path, ie.kind) for path,ie in 
233
233
                        self.wt.inventory.iter_entries()])
234
234
        finally:
240
240
        osutils.normalized_filename = osutils._accessible_normalized_filename
241
241
        try:
242
242
            smart_add_tree(self.wt, [])
243
 
            self.assertEqual([(u'\xe5', 'file')],
 
243
            self.assertEqual([('', 'root_directory'), (u'\xe5', 'file')],
244
244
                    [(path, ie.kind) for path,ie in 
245
245
                        self.wt.inventory.iter_entries()])
246
246
        finally: