~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Erik Bågfors
  • Date: 2006-02-10 21:23:29 UTC
  • mto: (1185.50.77 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1554.
  • Revision ID: erik@bagfors.nu-20060210212329-0b949820c96ebe15
log_formatter => log_format for "named" formatters
The name of a formatter is now called log_format and is exposed
as "log-format" and not "log-formatter" to the user for more consitency

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
                      "email=Robert Collins <robertc@example.com>\n"
33
33
                      "editor=vim\n"
34
34
                      "gpg_signing_command=gnome-gpg\n"
35
 
                      "log_formatter=short\n"
 
35
                      "log_format=short\n"
36
36
                      "user_global_option=something\n")
37
37
 
38
38
 
177
177
        my_config = config.Config()
178
178
        self.assertEqual(None, my_config.post_commit())
179
179
 
180
 
    def test_log_formatter_default(self):
 
180
    def test_log_format_default(self):
181
181
        my_config = config.Config()
182
 
        self.assertEqual('long', my_config.log_formatter())
 
182
        self.assertEqual('long', my_config.log_format())
183
183
 
184
184
 
185
185
class TestConfigPath(TestCase):
357
357
        my_config = self._get_sample_config()
358
358
        self.assertEqual(None, my_config.post_commit())
359
359
 
360
 
    def test_configured_logformatter(self):
 
360
    def test_configured_logformat(self):
361
361
        my_config = self._get_sample_config()
362
 
        self.assertEqual("short", my_config.log_formatter())
 
362
        self.assertEqual("short", my_config.log_format())
363
363
 
364
364
 
365
365
class TestLocationConfig(TestCase):