(self, cls, canary)
| 31 | ) |
| 32 | |
| 33 | def register(self, cls, canary): |
| 34 | original_init = cls.__init__ |
| 35 | instrumentation.register_class(cls) |
| 36 | ne_(cls.__init__, original_init) |
| 37 | manager = instrumentation.manager_of_class(cls) |
| 38 | |
| 39 | def init(state, args, kwargs): |
| 40 | canary.append((cls, "init", state.class_)) |
| 41 | |
| 42 | event.listen(manager, "init", init, raw=True) |
| 43 | |
| 44 | def test_ai(self): |
| 45 | inits = [] |
no test coverage detected