95
98
def test_list_all_values(self):
96
# FIXME: we should register the option as a list or it's displayed as
97
# astring and as such, quoted.
99
config.option_registry.register(config.ListOption('list'))
100
self.addCleanup(config.option_registry.remove, 'list')
98
101
self.bazaar_config.set_user_option('list', [1, 'a', 'with, a comma'])
99
102
script.run_script(self, '''\
100
103
$ bzr config -d tree
102
list = '1, a, "with, a comma"'
106
list = 1, a, "with, a comma"
105
109
def test_list_value_only(self):
106
# FIXME: we should register the option as a list or it's displayed as
107
# astring and as such, quoted.
110
config.option_registry.register(config.ListOption('list'))
111
self.addCleanup(config.option_registry.remove, 'list')
108
112
self.bazaar_config.set_user_option('list', [1, 'a', 'with, a comma'])
109
113
script.run_script(self, '''\
110
114
$ bzr config -d tree list
111
'1, a, "with, a comma"'
115
1, a, "with, a comma"
114
118
def test_bazaar_config(self):
137
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
143
161
class TestConfigDisplayWithPolicy(tests.TestCaseWithTransport):
337
362
# become necessary for this use case. Please do not adjust this number
338
363
# upwards without agreement from bzr's network support maintainers.
339
364
self.assertLength(5, self.hpss_calls)
365
self.assertLength(1, self.hpss_connections)
366
self.assertThat(self.hpss_calls, ContainsNoVfsCalls)