~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisiontree.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-23 19:45:15 UTC
  • mto: This revision was merged to the branch mainline in revision 6486.
  • Revision ID: jelmer@samba.org-20120223194515-1ctgfzj362m0tu0k
Use bzrdir.controldir for generic access to control directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    def test_empty_no_root(self):
59
59
        null_tree = self.t.branch.repository.revision_tree(
60
60
            revision.NULL_REVISION)
61
 
        self.assertIs(None, null_tree.inventory.root)
62
61
        self.assertIs(None, null_tree.get_root_id())
63
62
 
64
63
    def test_get_file_revision_root(self):
76
75
 
77
76
    def test_get_file_mtime_ghost(self):
78
77
        file_id = iter(self.rev_tree.all_file_ids()).next()
79
 
        self.rev_tree.inventory[file_id].revision = 'ghostrev'
 
78
        self.rev_tree.root_inventory[file_id].revision = 'ghostrev'
80
79
        self.assertRaises(errors.FileTimestampUnavailable, 
81
80
            self.rev_tree.get_file_mtime, file_id)