97
97
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.
98
config.option_registry.register(config.ListOption('list'))
99
self.addCleanup(config.option_registry.remove, 'list')
100
100
self.bazaar_config.set_user_option('list', [1, 'a', 'with, a comma'])
101
101
script.run_script(self, '''\
102
102
$ bzr config -d tree
104
list = '1, a, "with, a comma"'
104
list = 1, a, "with, a comma"
107
107
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.
108
config.option_registry.register(config.ListOption('list'))
109
self.addCleanup(config.option_registry.remove, 'list')
110
110
self.bazaar_config.set_user_option('list', [1, 'a', 'with, a comma'])
111
111
script.run_script(self, '''\
112
112
$ bzr config -d tree list
113
'1, a, "with, a comma"'
113
1, a, "with, a comma"
116
116
def test_bazaar_config(self):