~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisiontree.py

  • Committer: Vincent Ladeuil
  • Date: 2011-12-16 16:38:33 UTC
  • mto: This revision was merged to the branch mainline in revision 6387.
  • Revision ID: v.ladeuil+lp@free.fr-20111216163833-4igwmwi1dmxbbebw
Migrate add.maximum_file_size to the new config scheme

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)
61
62
        self.assertIs(None, null_tree.get_root_id())
62
63
 
63
64
    def test_get_file_revision_root(self):
75
76
 
76
77
    def test_get_file_mtime_ghost(self):
77
78
        file_id = iter(self.rev_tree.all_file_ids()).next()
78
 
        self.rev_tree.root_inventory[file_id].revision = 'ghostrev'
 
79
        self.rev_tree.inventory[file_id].revision = 'ghostrev'
79
80
        self.assertRaises(errors.FileTimestampUnavailable, 
80
81
            self.rev_tree.get_file_mtime, file_id)