(self)
| 294 | return True |
| 295 | |
| 296 | def __del__(self): |
| 297 | # Playbooks are only executed on assert (which signals that the playbook is partially |
| 298 | # complete), so we need to signal if someone forgets to assert and playbooks aren't |
| 299 | # evaluated. |
| 300 | is_final_destruct = not hasattr(self, "_errored") |
| 301 | if is_final_destruct or ( |
| 302 | not self._errored and len(self.actual) < len(self.expected) |
| 303 | ): |
| 304 | raise RuntimeError("Unfinished playbook!") |
| 305 | |
| 306 | |
| 307 | class reply(events.Event): |
no outgoing calls