~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_msgeditor.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-23 17:00:36 UTC
  • mfrom: (4032.1.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090223170036-3q1v68ewdt8i0to5
(Marius Kruger) Remove all trailing whitespace and add tests to
        enforce this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
                "filesystem encoding %s" % sys.getfilesystemencoding())
70
70
        working_tree.add(filename)
71
71
        return working_tree
72
 
    
 
72
 
73
73
    def test_commit_template(self):
74
74
        """Test building a commit message template"""
75
75
        working_tree = self.make_uncommitted_tree()
354
354
 
355
355
    def test_generate_commit_message_template_no_hooks(self):
356
356
        commit_obj = commit.Commit()
357
 
        self.assertIs(None, 
 
357
        self.assertIs(None,
358
358
            msgeditor.generate_commit_message_template(commit_obj))
359
359
 
360
360
    def test_generate_commit_message_template_hook(self):
364
364
        msgeditor.hooks.install_named_hook("commit_message_template",
365
365
                lambda commit_obj, msg: "save me some typing\n", None)
366
366
        commit_obj = commit.Commit()
367
 
        self.assertEquals("save me some typing\n", 
 
367
        self.assertEquals("save me some typing\n",
368
368
            msgeditor.generate_commit_message_template(commit_obj))