/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_msgeditor.py

  • Committer: Robert Collins
  • Date: 2009-02-24 08:09:17 UTC
  • mfrom: (4037 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4038.
  • Revision ID: robertc@robertcollins.net-20090224080917-9k7ib4oj1godlp3k
Merge bzr (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))