97
98
def test_list_all_values(self):
98
# FIXME: we should register the option as a list or it's displayed as
99
# astring and as such, quoted.
99
config.option_registry.register(config.ListOption('list'))
100
self.addCleanup(config.option_registry.remove, 'list')
100
101
self.bazaar_config.set_user_option('list', [1, 'a', 'with, a comma'])
101
102
script.run_script(self, '''\
102
103
$ bzr config -d tree
104
list = '1, a, "with, a comma"'
106
list = 1, a, "with, a comma"
107
109
def test_list_value_only(self):
108
# FIXME: we should register the option as a list or it's displayed as
109
# astring and as such, quoted.
110
config.option_registry.register(config.ListOption('list'))
111
self.addCleanup(config.option_registry.remove, 'list')
110
112
self.bazaar_config.set_user_option('list', [1, 'a', 'with, a comma'])
111
113
script.run_script(self, '''\
112
114
$ bzr config -d tree list
113
'1, a, "with, a comma"'
115
1, a, "with, a comma"
116
118
def test_bazaar_config(self):
139
142
script.run_script(self, '''\
149
def test_cmd_line(self):
150
self.bazaar_config.set_user_option('hello', 'world')
151
script.run_script(self, '''\
152
$ bzr config -Ohello=bzr
145
161
class TestConfigDisplayWithPolicy(tests.TestCaseWithTransport):
339
362
# become necessary for this use case. Please do not adjust this number
340
363
# upwards without agreement from bzr's network support maintainers.
341
364
self.assertLength(5, self.hpss_calls)
365
self.assertLength(1, self.hpss_connections)
342
366
self.assertThat(self.hpss_calls, ContainsNoVfsCalls)