~gz/bzr/hpss_log_stacked_ghost_1049124

« back to all changes in this revision

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

(jameinel) Properly save ``branch.conf`` changes when unlocking a
 BzrBranch4. (Vincent Ladeuil)

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