/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: Vincent Ladeuil
  • Date: 2010-01-25 17:48:22 UTC
  • mto: (4987.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4988.
  • Revision ID: v.ladeuil+lp@free.fr-20100125174822-nce4l19sbwx83jvq
Deploying the new overrideAttr facility further reduces the complexity
and make the code clearer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
360
360
            msgeditor.generate_commit_message_template(commit_obj))
361
361
 
362
362
    def test_generate_commit_message_template_hook(self):
363
 
        def restoreDefaults():
364
 
            # We can't use addAttrCleanup here since we want to restore only
365
 
            # part of the dict -- vila 100123
366
 
            msgeditor.hooks['commit_message_template'] = []
367
 
        self.addCleanup(restoreDefaults)
368
363
        msgeditor.hooks.install_named_hook("commit_message_template",
369
364
                lambda commit_obj, msg: "save me some typing\n", None)
370
365
        commit_obj = commit.Commit()