~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_foreign_vcs/test_branch.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) 2009 Canonical Ltd
 
1
# Copyright (C) 2009, 2011, 2016 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
101
101
    def test_null_revid_revno(self):
102
102
        """null: should return revno 0."""
103
103
        branch = self.make_branch()
104
 
        self.assertEquals(0, branch.revision_id_to_revno(NULL_REVISION))
 
104
        self.assertEqual(0, branch.revision_id_to_revno(NULL_REVISION))
105
105
 
106
106
    def test_get_stacked_on_url(self):
107
107
        """Test that get_stacked_on_url() behaves as expected.
119
119
 
120
120
    def test_last_revision_empty_branch(self):
121
121
        branch = self.make_empty_branch()
122
 
        self.assertEquals(NULL_REVISION, branch.last_revision())
123
 
        self.assertEquals(0, branch.revno())
124
 
        self.assertEquals((0, NULL_REVISION), branch.last_revision_info())
 
122
        self.assertEqual(NULL_REVISION, branch.last_revision())
 
123
        self.assertEqual(0, branch.revno())
 
124
        self.assertEqual((0, NULL_REVISION), branch.last_revision_info())
125
125
 
126
126
 
127
127
class ForeignBranchFormatTests(TestCaseWithTransport):