~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: 2016-01-15 09:21:49 UTC
  • mfrom: (6606.2.1 autodoc-unicode)
  • Revision ID: pqm@pqm.ubuntu.com-20160115092149-z5f4sfq3jvaz0enb
(vila) Fix autodoc runner when LANG=C. (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