161
161
def test_registry_converter(self):
162
162
options = [option.RegistryOption('format', '',
164
164
opts, args = self.parse(options, ['--format', 'knit'])
165
165
self.assertIsInstance(opts.format.repository_format,
166
166
knitrepo.RepositoryFormatKnit1)
168
168
def test_lazy_registry(self):
169
169
options = [option.RegistryOption('format', '',
172
172
opts, args = self.parse(options, ['--format', 'knit'])
173
173
self.assertEqual({'format': 'knit'}, opts)