server/test/unittest_hook.py
branchstable
changeset 5093 8d073d2e089d
parent 5029 f7709d28fb79
child 5421 8167de96c523
--- a/server/test/unittest_hook.py	Wed Mar 31 09:45:14 2010 +0200
+++ b/server/test/unittest_hook.py	Wed Mar 31 09:55:19 2010 +0200
@@ -81,7 +81,7 @@
         raise HookCalled()
 
 
-class HooksManagerTC(TestCase):
+class HooksRegistryTC(TestCase):
 
     def setUp(self):
         """ called before each test from this class """
@@ -115,7 +115,6 @@
                          is_hook_activated=lambda x, cls: cls.category not in dis)
         self.assertRaises(HookCalled,
                           self.o.call_hooks, 'before_add_entity', cw)
-        self.o.call_hooks('before_delete_entity', cw) # nothing to call
         dis.add('cat1')
         self.o.call_hooks('before_add_entity', cw) # disabled hooks category, not called
         dis.remove('cat1')