199 # self.o.call_hooks('after_delete_relation', 'concerne', 'USER', |
199 # self.o.call_hooks('after_delete_relation', 'concerne', 'USER', |
200 # 3, 'concerne', 4) |
200 # 3, 'concerne', 4) |
201 # self.assertEqual(self.called, [(1, 'concerne', 2), (3, 'concerne', 4)]) |
201 # self.assertEqual(self.called, [(1, 'concerne', 2), (3, 'concerne', 4)]) |
202 |
202 |
203 |
203 |
204 # def _before_relation_hook(self, pool, subject, r_type, object): |
204 # def _before_relation_hook(self, cnxset, subject, r_type, object): |
205 # self.called.append((subject, r_type, object)) |
205 # self.called.append((subject, r_type, object)) |
206 |
206 |
207 # def _after_relation_hook(self, pool, subject, r_type, object): |
207 # def _after_relation_hook(self, cnxset, subject, r_type, object): |
208 # self.called.append((subject, r_type, object)) |
208 # self.called.append((subject, r_type, object)) |
209 |
209 |
210 |
210 |
211 if __name__ == '__main__': |
211 if __name__ == '__main__': |
212 unittest_main() |
212 unittest_main() |