~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_hooks.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) 2007-2010 Canonical Ltd
 
1
# Copyright (C) 2007-2012, 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
138
138
        """
139
139
        branch = self.make_branch_with_revision_ids('revid-one')
140
140
        def assertBranchAtRevision1(params):
141
 
            self.assertEquals(
 
141
            self.assertEqual(
142
142
                (1, 'revid-one'), params.branch.last_revision_info())
143
143
        _mod_branch.Branch.hooks.install_named_hook(
144
144
            'pre_change_branch_tip', assertBranchAtRevision1, None)
235
235
        """
236
236
        branch = self.make_branch_with_revision_ids('revid-one')
237
237
        def assertBranchAtRevision1(params):
238
 
            self.assertEquals(
 
238
            self.assertEqual(
239
239
                (0, revision.NULL_REVISION), params.branch.last_revision_info())
240
240
        _mod_branch.Branch.hooks.install_named_hook(
241
241
            'post_change_branch_tip', assertBranchAtRevision1, None)