MCPcopy Create free account
hub / github.com/pyinvoke/invoke / patterns_span_multiple_lines

Method patterns_span_multiple_lines

tests/watchers.py:72–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 = """
75You only call me
76when you have a problem
77You never call me
78Just to say hi
79"""
80 assert list(r.submit(output)) == ["So sorry"]
81
82
83class FailingResponder_:

Callers

nothing calls this directly

Calls 2

submitMethod · 0.95
ResponderClass · 0.90

Tested by

no test coverage detected