~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Vincent Ladeuil
  • Date: 2017-01-30 14:42:05 UTC
  • mfrom: (6620.1.1 trunk)
  • Revision ID: tarmac-20170130144205-r8fh2xpmiuxyozpv
Merge  2.7 into trunk including fix for bug #1657238 [r=vila]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2010 Canonical Ltd
 
1
# Copyright (C) 2010, 2011, 2012, 2016 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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.assertEqual('foo', b.get_submit_branch())
 
45
 
38
46