| 31 | def test_reactorHandlerCycling(self, n=0): |
| 32 | |
| 33 | class CustomHandler(Handler): |
| 34 | UNSET = 999999999 |
| 35 | |
| 36 | def __init__(self): |
| 37 | self.offset = len(traceback.extract_stack()) |
| 38 | |
| 39 | def on_reactor_init(self, event): |
| 40 | self.depth = len(traceback.extract_stack()) |
| 41 | |
| 42 | def reset(self): |
| 43 | self.depth = self.UNSET |
| 44 | |
| 45 | @property |
| 46 | def init_depth(self): |
| 47 | d = self.depth - self.offset |
| 48 | return d |
| 49 | custom = CustomHandler() |
| 50 | |
| 51 | container = Container() |
no outgoing calls