~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-14 14:39:16 UTC
  • mfrom: (6027.1.18 deprecations)
  • Revision ID: pqm@pqm.ubuntu.com-20120314143916-dggf9d1d26j3kizq
(vila) Remove some code deprecated in series older than 2.4 (inclusive)
 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
476
476
    def test_constructs(self):
477
477
        config.Config()
478
478
 
479
 
    def test_no_default_editor(self):
480
 
        self.assertRaises(
481
 
            NotImplementedError,
482
 
            self.applyDeprecated, deprecated_in((2, 4, 0)),
483
 
            config.Config().get_editor)
484
 
 
485
479
    def test_user_email(self):
486
480
        my_config = InstrumentedConfig()
487
481
        self.assertEqual('robert.collins@example.org', my_config.user_email())
1189
1183
        my_config = config.GlobalConfig()
1190
1184
        self.assertEqual(None, my_config._get_user_id())
1191
1185
 
1192
 
    def test_configured_editor(self):
1193
 
        my_config = config.GlobalConfig.from_string(sample_config_text)
1194
 
        editor = self.applyDeprecated(
1195
 
            deprecated_in((2, 4, 0)), my_config.get_editor)
1196
 
        self.assertEqual('vim', editor)
1197
 
 
1198
1186
    def test_signatures_always(self):
1199
1187
        my_config = config.GlobalConfig.from_string(sample_always_signatures)
1200
1188
        self.assertEqual(config.CHECK_NEVER,