151
151
self.assertIsInstance(opts.format.repository_format,
152
152
knitrepo.RepositoryFormatKnit1)
158
opts, args = self.parse(options, ['--format', 'knit'])
161
errors.BadOptionValue, self.parse, options, ['--format', 'BAD'])
154
163
def test_from_kwargs(self):
155
164
my_option = option.RegistryOption.from_kwargs('my-option',
156
165
help='test option', short='be short', be_long='go long')