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):