~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_msgeditor.py

  • Committer: John Arbash Meinel
  • Date: 2009-02-23 15:29:35 UTC
  • mfrom: (3943.7.7 bzr.code_style_cleanup)
  • mto: This revision was merged to the branch mainline in revision 4033.
  • Revision ID: john@arbash-meinel.com-20090223152935-oel9m92mwcc6nb4h
Merge the removal of all trailing whitespace, and resolve conflicts.

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))