~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_msgeditor.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) 2005-2011 Canonical Ltd
 
1
# Copyright (C) 2005-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
351
351
        msgeditor.hooks.install_named_hook("set_commit_message",
352
352
                lambda commit_obj, existing_message: "save me some typing\n", None)
353
353
        commit_obj = commit.Commit()
354
 
        self.assertEquals("save me some typing\n",
 
354
        self.assertEqual("save me some typing\n",
355
355
            msgeditor.set_commit_message(commit_obj))
356
356
 
357
357
    def test_generate_commit_message_template_no_hooks(self):
363
363
        msgeditor.hooks.install_named_hook("commit_message_template",
364
364
                lambda commit_obj, msg: "save me some typing\n", None)
365
365
        commit_obj = commit.Commit()
366
 
        self.assertEquals("save me some typing\n",
 
366
        self.assertEqual("save me some typing\n",
367
367
            msgeditor.generate_commit_message_template(commit_obj))
368
368
 
369
369