~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2012-07-06 11:27:16 UTC
  • mfrom: (6534 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6535.
  • Revision ID: jelmer@samba.org-20120706112716-jcun7vvbpgmcplgz
Merge bzr.dev.

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