(self)
| 70 | assert list(r.submit("jump, wait, jump, wait")) == ["how high?"] * 2 |
| 71 | |
| 72 | def patterns_span_multiple_lines(self): |
| 73 | r = Responder(pattern=r"call.*problem", response="So sorry") |
| 74 | output = """ |
| 75 | You only call me |
| 76 | when you have a problem |
| 77 | You never call me |
| 78 | Just to say hi |
| 79 | """ |
| 80 | assert list(r.submit(output)) == ["So sorry"] |
| 81 | |
| 82 | |
| 83 | class FailingResponder_: |