40
40
hooks.install_hook('set_rh', None)
41
41
self.assertEqual(hooks['set_rh'], [None])
45
self.assertRaises(UnknownHook, hooks.install_named_hook, 'silly',
47
57
self.assertEqual("demo", hooks.get_hook_name(None))
49
59
def test_name_hook_and_retrieve_name(self):