~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/upstream_import.py

  • Committer: Aaron Bentley
  • Date: 2012-03-20 02:40:57 UTC
  • Revision ID: aaron@aaronbentley.com-20120320024057-mqltf93xxs09r0ry
Compatibility fixes for bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
            self.assertTrue(tree.path2id('README') is not None)
224
224
            self.assertTrue(tree.path2id('FEEDME') is not None)
225
225
            self.assertTrue(os.path.isfile(tree.abspath('README')))
226
 
            self.assertEqual(tree.inventory[tree.path2id('README')].kind,
 
226
            self.assertEqual(tree.stored_kind(tree.path2id('README')),
227
227
                'file')
228
 
            self.assertEqual(tree.inventory[tree.path2id('FEEDME')].kind,
 
228
            self.assertEqual(tree.stored_kind(tree.path2id('FEEDME')),
229
229
                'file')
230
230
            f = file(tree.abspath('junk/food'), 'wb')
231
231
            f.write('I like food\n')