diff options
Diffstat (limited to '900-implements.yarn')
-rw-r--r-- | 900-implements.yarn | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/900-implements.yarn b/900-implements.yarn index 19c3f9c..0195a72 100644 --- a/900-implements.yarn +++ b/900-implements.yarn @@ -26,4 +26,9 @@ h.assertEqual(expected, actual) IMPLEMENTS THEN HTTP body matches "(.*)" - pass + import re, yarnhelper + h = yarnhelper.YarnHelper() + body = h.get_variable('http_body') + pattern = h.get_next_match() + m = re.search(pattern, body) + h.assertNotEqual(m, None) |