153
153
def test_valid_lazy_hooks(self):
154
154
# Make sure that all the registered lazy hooks are referring to existing
155
155
# hook points which allow lazy registration.
157
158
obj = pyutils.get_named_object(module_name, member_name)
158
159
self.assertEquals(obj._module, module_name)
159
160
self.assertEquals(obj._member_name, member_name)
160
161
self.assertTrue(hook_name in obj)
163
165
class TestHook(tests.TestCase):