~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: John Arbash Meinel
  • Date: 2008-07-16 18:14:23 UTC
  • mfrom: (3542 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3543.
  • Revision ID: john@arbash-meinel.com-20080716181423-9xbj5va4eakfjlqf
Merge bzr.dev 3542

Show diffs side-by-side

added added

removed removed

Lines of Context:
1205
1205
        value = bzrdir_config.get_option('key3', 'SECTION')
1206
1206
        self.assertEqual(value, 'value3-section')
1207
1207
 
 
1208
    def test_set_unset_default_stack_on(self):
 
1209
        my_dir = self.make_bzrdir('.')
 
1210
        bzrdir_config = config.BzrDirConfig(my_dir.transport)
 
1211
        self.assertIs(None, bzrdir_config.get_default_stack_on())
 
1212
        bzrdir_config.set_default_stack_on('Foo')
 
1213
        self.assertEqual('Foo', bzrdir_config._config.get_option(
 
1214
                         'default_stack_on'))
 
1215
        self.assertEqual('Foo', bzrdir_config.get_default_stack_on())
 
1216
        bzrdir_config.set_default_stack_on(None)
 
1217
        self.assertIs(None, bzrdir_config.get_default_stack_on())
 
1218
 
1208
1219
 
1209
1220
class TestAuthenticationConfigFile(tests.TestCase):
1210
1221
    """Test the authentication.conf file matching"""