~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisiontree.py

  • Committer: Vincent Ladeuil
  • Date: 2016-02-01 18:09:18 UTC
  • mfrom: (6614.1.3 assert)
  • mto: This revision was merged to the branch mainline in revision 6615.
  • Revision ID: v.ladeuil+lp@free.fr-20160201180918-jqtq8ol6gdbbbtpv
Fix deprecated assertions to unblock release

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):