~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_msgeditor.py

  • Committer: Patch Queue Manager
  • Date: 2012-08-28 21:17:31 UTC
  • mfrom: (6555.1.2 post-mortem)
  • Revision ID: pqm@pqm.ubuntu.com-20120828211731-5di1tveevpzcdtd9
(jelmer) Remove compatibility code for python 2.4 for post mortem. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2012, 2016 Canonical Ltd
 
1
# Copyright (C) 2005-2011 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.assertEqual("save me some typing\n",
 
354
        self.assertEquals("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.assertEqual("save me some typing\n",
 
366
        self.assertEquals("save me some typing\n",
367
367
            msgeditor.generate_commit_message_template(commit_obj))
368
368
 
369
369