~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisiontree.py

  • Committer: Patch Queue Manager
  • Date: 2016-02-01 19:13:13 UTC
  • mfrom: (6614.2.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20160201191313-wdfvmfff1djde6oq
(vila) Release 2.7.0 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2008-2011 Canonical Ltd
 
1
# Copyright (C) 2006, 2008-2012, 2016 Canonical Ltd
2
2
# Authors:  Robert Collins <robert.collins@canonical.com>
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
61
61
        self.assertIs(None, null_tree.get_root_id())
62
62
 
63
63
    def test_get_file_revision_root(self):
64
 
        self.assertEquals(self.rev_id,
 
64
        self.assertEqual(self.rev_id,
65
65
            self.rev_tree.get_file_revision(self.rev_tree.get_root_id()))
66
66
 
67
67
    def test_get_file_revision(self):
70
70
        revid1 = self.t.commit('add a')
71
71
        revid2 = self.t.commit('another change', allow_pointless=True)
72
72
        tree = self.t.branch.repository.revision_tree(revid2)
73
 
        self.assertEquals(revid1,
 
73
        self.assertEqual(revid1,
74
74
            tree.get_file_revision(tree.path2id('a')))
75
75
 
76
76
    def test_get_file_mtime_ghost(self):