32
32
def test_install_hook_raises_unknown_hook(self):
33
33
"""install_hook should raise UnknownHook if a hook is unknown."""
35
self.assertRaises(UnknownHook, self.applyDeprecated, one_four,
35
self.assertRaises(UnknownHook, self.applyDeprecated, one_five,
36
36
hooks.install_hook, 'silly', None)
38
38
def test_install_hook_appends_known_hook(self):
39
39
"""install_hook should append the callable for known hooks."""
42
self.applyDeprecated(one_four, hooks.install_hook, 'set_rh', None)
42
self.applyDeprecated(one_five, hooks.install_hook, 'set_rh', None)
43
43
self.assertEqual(hooks['set_rh'], [None])
45
45
def test_install_named_hook_raises_unknown_hook(self):