~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_init.py

  • Committer: Patch Queue Manager
  • Date: 2012-08-23 14:24:38 UTC
  • mfrom: (6499.3.13 832042-shared-stores)
  • Revision ID: pqm@pqm.ubuntu.com-20120823142438-804xd3yql622ahhp
(vila) Share and cache local config files (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
 
169
169
    def test_init_default_format_option(self):
170
170
        """bzr init should read default format from option default_format"""
171
 
        conf = _mod_config.GlobalConfig.from_string('''
 
171
        g_store = _mod_config.GlobalStore()
 
172
        g_store._load_from_string('''
172
173
[DEFAULT]
173
174
default_format = 1.9
174
 
''', save=True)
 
175
''')
 
176
        g_store.save()
175
177
        out, err = self.run_bzr_subprocess('init')
176
178
        self.assertContainsRe(out, '1.9')
177
179