From 835c05dd1f07789031154c98cee95e34e902a8aa Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 11 Feb 2017 18:21:44 +0200 Subject: Output body being matched to stdout, for debugging --- 900-implements.yarn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1