server/test/unittest_hook.py
changeset 4835 13b0b96d7982
parent 4834 b718626a0e60
child 5029 f7709d28fb79
--- a/server/test/unittest_hook.py	Mon Mar 08 19:02:35 2010 +0100
+++ b/server/test/unittest_hook.py	Tue Mar 09 08:59:43 2010 +0100
@@ -110,6 +110,8 @@
         self.o.register(AddAnyHook)
         dis = set()
         cw = mock_object(vreg=self.vreg,
+                         set_read_security=lambda *a,**k: None,
+                         set_write_security=lambda *a,**k: None,
                          is_hook_activated=lambda x, cls: cls.category not in dis)
         self.assertRaises(HookCalled,
                           self.o.call_hooks, 'before_add_entity', cw)