/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

remove all trailing whitespace from bzr source

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()
322
322
 
323
323
    def test_generate_commit_message_template_no_hooks(self):
324
324
        commit_obj = commit.Commit()
325
 
        self.assertIs(None, 
 
325
        self.assertIs(None,
326
326
            msgeditor.generate_commit_message_template(commit_obj))
327
327
 
328
328
    def test_generate_commit_message_template_hook(self):
332
332
        msgeditor.hooks.install_named_hook("commit_message_template",
333
333
                lambda commit_obj, msg: "save me some typing\n", None)
334
334
        commit_obj = commit.Commit()
335
 
        self.assertEquals("save me some typing\n", 
 
335
        self.assertEquals("save me some typing\n",
336
336
            msgeditor.generate_commit_message_template(commit_obj))