~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_hooks.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) 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)