~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisiontree.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:
75
75
            tree.get_file_revision(tree.path2id('a')))
76
76
 
77
77
    def test_get_file_mtime_ghost(self):
78
 
        file_id = iter(self.rev_tree).next()
 
78
        file_id = iter(self.rev_tree.all_file_ids()).next()
79
79
        self.rev_tree.inventory[file_id].revision = 'ghostrev'
80
80
        self.assertRaises(errors.FileTimestampUnavailable, 
81
81
            self.rev_tree.get_file_mtime, file_id)