From 7a9e116bf7a31ecf410b9fd474abbe8c13dcb0ce Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 25 Sep 2016 19:35:53 +0300 Subject: Implement HTTP status testing --- 900-implements.yarn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '900-implements.yarn') diff --git a/900-implements.yarn b/900-implements.yarn index 208a68f..19c3f9c 100644 --- a/900-implements.yarn +++ b/900-implements.yarn @@ -19,7 +19,11 @@ h.set_variable('http_body', body) IMPLEMENTS THEN HTTP status is (\d+) - pass + import yarnhelper + h = yarnhelper.YarnHelper() + expected = h.get_variable('http_status') + actual = int(h.get_next_match()) + h.assertEqual(expected, actual) IMPLEMENTS THEN HTTP body matches "(.*)" pass -- cgit v1.2.1