~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: 2009-04-15 03:10:36 UTC
  • mfrom: (4288.1.6 push.roundtrips)
  • Revision ID: pqm@pqm.ubuntu.com-20090415031036-ikndntbkaaj5zjya
(robertc) 6 less round trips on smart push by using a verb to get
        bzrdir stacking policy and inheriting set_parent for
        RemoteBranch. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1211
1211
 
1212
1212
    def test_set_unset_default_stack_on(self):
1213
1213
        my_dir = self.make_bzrdir('.')
1214
 
        bzrdir_config = config.BzrDirConfig(my_dir.transport)
 
1214
        bzrdir_config = config.BzrDirConfig(my_dir)
1215
1215
        self.assertIs(None, bzrdir_config.get_default_stack_on())
1216
1216
        bzrdir_config.set_default_stack_on('Foo')
1217
1217
        self.assertEqual('Foo', bzrdir_config._config.get_option(