~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_config.py

  • Committer: Patch Queue Manager
  • Date: 2016-01-15 09:21:49 UTC
  • mfrom: (6606.2.1 autodoc-unicode)
  • Revision ID: pqm@pqm.ubuntu.com-20160115092149-z5f4sfq3jvaz0enb
(vila) Fix autodoc runner when LANG=C. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        config.set_user_option('name', value_dict.copy())
36
36
        self.assertEqual(value_dict, config.get_user_option('name'))
37
37
 
 
38
    def test_set_submit_branch(self):
 
39
        # Make sure setting a config option persists on disk
 
40
        b = self.make_branch('.')
 
41
        b.set_submit_branch('foo')
 
42
        # Refresh the branch
 
43
        b = branch.Branch.open('.')
 
44
        self.assertEquals('foo', b.get_submit_branch())
 
45
 
38
46