示例#1
0
 def tearDown(self):
     registry = Registry()
     registry.unregister('abstract')
示例#2
0
 def tearDown(self):
     registry = Registry()
     registry.unregister('abstract')
示例#3
0
 def test_unregister(self):
     registry = Registry()
     registry.register('abstract', AbstractKeyGenerator)
     registry.unregister('abstract')
     self.assertRaises(GeneratorError, registry.get, 'abstract')
     self.assertFalse(registry.get('abstract', False))
示例#4
0
 def test_unregister(self):
     registry = Registry()
     registry.register('abstract', AbstractKeyGenerator)
     registry.unregister('abstract')
     self.assertRaises(GeneratorError, registry.get, 'abstract')
     self.assertFalse(registry.get('abstract', False))