~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_add.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-09 14:47:11 UTC
  • mfrom: (5837.2.5 tree-is-container)
  • Revision ID: pqm@pqm.ubuntu.com-20110509144711-b87xrawe7hozixek
(jelmer) Deprecate Tree.__iter__. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        tree = self.make_branch_and_tree('.')
151
151
        tree.lock_write()
152
152
        tree.add('')
153
 
        self.assertEqual([tree.path2id('')], list(tree))
 
153
        self.assertEqual([tree.path2id('')], list(tree.all_file_ids()))
154
154
        # the root should have been changed to be a new unique root.
155
155
        self.assertNotEqual(inventory.ROOT_ID, tree.path2id(''))
156
156
        tree.unlock()