~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2012-02-23 16:48:41 UTC
  • mto: (6437.41.3 rmbranch-active)
  • mto: This revision was merged to the branch mainline in revision 6481.
  • Revision ID: jelmer@samba.org-20120223164841-eyy9xljbpblkchba
Support colocated branches in 'bzr rmbranch'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
            """
96
96
            ''')
97
97
 
98
 
    def test_list_value_all(self):
 
98
    def test_list_all_values(self):
99
99
        config.option_registry.register(config.ListOption('list'))
100
100
        self.addCleanup(config.option_registry.remove, 'list')
101
101
        self.bazaar_config.set_user_option('list', [1, 'a', 'with, a comma'])
106
106
              list = 1, a, "with, a comma"
107
107
            ''')
108
108
 
109
 
    def test_list_value_one(self):
 
109
    def test_list_value_only(self):
110
110
        config.option_registry.register(config.ListOption('list'))
111
111
        self.addCleanup(config.option_registry.remove, 'list')
112
112
        self.bazaar_config.set_user_option('list', [1, 'a', 'with, a comma'])
115
115
            1, a, "with, a comma"
116
116
            ''')
117
117
 
118
 
    def test_registry_value_all(self):
119
 
        self.bazaar_config.set_user_option('bzr.transform.orphan_policy',
120
 
                                           u'move')
121
 
        script.run_script(self, '''\
122
 
            $ bzr config -d tree
123
 
            bazaar:
124
 
              [DEFAULT]
125
 
              bzr.transform.orphan_policy = move
126
 
            ''')
127
 
 
128
 
    def test_registry_value_one(self):
129
 
        self.bazaar_config.set_user_option('bzr.transform.orphan_policy',
130
 
                                           u'move')
131
 
        script.run_script(self, '''\
132
 
            $ bzr config -d tree bzr.transform.orphan_policy
133
 
            move
134
 
            ''')
135
 
 
136
118
    def test_bazaar_config(self):
137
119
        self.bazaar_config.set_user_option('hello', 'world')
138
120
        script.run_script(self, '''\