Example #1
0
 def test_remote_hook(self):
     hooks.register_hook('bar', 'baz', 'zuz')
     hooks.remove_hook('bar', 'baz', 'zuz')
     self.assertDictEqual(hooks.get_hook_table('bar'), {'baz': []})
Example #2
0
 def test_register_hook(self):
     ''' '''
     hooks.register_hook('bar', 'baz', 'zuz')
     self.assertDictEqual(hooks.get_hook_table('bar'), {'baz': ['zuz']})