/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: 2009-12-15 15:05:26 UTC
  • mto: (4905.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4906.
  • Revision ID: v.ladeuil+lp@free.fr-20091215150526-5opw59co07f7uhz3
Implement config.get_user_option_as_list.

* bzrlib/tests/test_config.py:
(TestGetConfig.test_get_user_option_as_list): 

* bzrlib/config.py:
(Config.get_user_option_as_list): A typed accessor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 Canonical Ltd
 
1
# Copyright (C) 2005 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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
            msgeditor.hooks['commit_message_template'] = []
 
365
        self.addCleanup(restoreDefaults)
363
366
        msgeditor.hooks.install_named_hook("commit_message_template",
364
367
                lambda commit_obj, msg: "save me some typing\n", None)
365
368
        commit_obj = commit.Commit()