summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-02-11 18:21:44 +0200
committerLars Wirzenius <liw@liw.fi>2017-02-11 18:21:44 +0200
commit835c05dd1f07789031154c98cee95e34e902a8aa (patch)
tree2b36a47a132424f6458d1428a0b6a159b367d129
parent672d071cdf0ca1aa5d899e74c3473d69ce6ad442 (diff)
downloadserver-yarns-835c05dd1f07789031154c98cee95e34e902a8aa.tar.gz
Output body being matched to stdout, for debugging
-rw-r--r--900-implements.yarn3
1 files changed, 2 insertions, 1 deletions
diff --git a/900-implements.yarn b/900-implements.yarn
index 2abb5ee..dc73049 100644
--- a/900-implements.yarn
+++ b/900-implements.yarn
@@ -26,9 +26,10 @@
h.assertEqual(expected, actual)
IMPLEMENTS THEN HTTP body matches "(.*)"
- import re, yarnhelper
+ import re, sys, yarnhelper
h = yarnhelper.YarnHelper()
body = h.get_variable('http_body')
+ sys.stdout.write('Body:\n{}'.format(body))
pattern = h.get_next_match()
m = re.search(pattern, body)
h.assertNotEqual(m, None)