170
170
registry.register_metadir('two', 'RepositoryFormatKnit1', 'two help')
171
171
registry.set_default('one')
172
172
options = [option.RegistryOption('format', 'format help', registry,
174
174
parser = option.get_optparser(dict((o.name, o) for o in options))
175
175
value = parser.format_option_help()
176
176
self.assertContainsRe(value, 'format.*format help')
177
177
self.assertContainsRe(value, 'one.*one help')
179
180
def test_iter_switches(self):
180
181
opt = option.Option('hello', help='fg')