228
228
"The factory(%r) for %r is not callable" % (factory, key))
229
229
obj = known_hooks_key_to_object(key)
230
230
self.assertIsInstance(obj, Hooks)
232
232
self.assertIsInstance(obj, Hooks)
233
233
self.assertEqual(type(obj), type(new_hooks))
234
234
self.assertEqual("No hook name", new_hooks.get_hook_name(None))