~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-02-18 02:33:47 UTC
  • mfrom: (1534.1.24 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060218023347-0952c65f668bfd68
Merge Robert Collins integration.

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_format=short\n"
35
36
                      "user_global_option=something\n")
36
37
 
37
38
 
176
177
        my_config = config.Config()
177
178
        self.assertEqual(None, my_config.post_commit())
178
179
 
 
180
    def test_log_format_default(self):
 
181
        my_config = config.Config()
 
182
        self.assertEqual('long', my_config.log_format())
 
183
 
179
184
 
180
185
class TestConfigPath(TestCase):
181
186
 
352
357
        my_config = self._get_sample_config()
353
358
        self.assertEqual(None, my_config.post_commit())
354
359
 
 
360
    def test_configured_logformat(self):
 
361
        my_config = self._get_sample_config()
 
362
        self.assertEqual("short", my_config.log_format())
 
363
 
355
364
 
356
365
class TestLocationConfig(TestCase):
357
366