diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-02-11 18:21:44 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-02-11 18:21:44 +0200 |
commit | 835c05dd1f07789031154c98cee95e34e902a8aa (patch) | |
tree | 2b36a47a132424f6458d1428a0b6a159b367d129 | |
parent | 672d071cdf0ca1aa5d899e74c3473d69ce6ad442 (diff) | |
download | server-yarns-835c05dd1f07789031154c98cee95e34e902a8aa.tar.gz |
Output body being matched to stdout, for debugging
-rw-r--r-- | 900-implements.yarn | 3 |
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) |