diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-09-25 19:35:53 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-09-25 19:35:53 +0300 |
commit | 7a9e116bf7a31ecf410b9fd474abbe8c13dcb0ce (patch) | |
tree | 3ffd696c0d750eb19c8cdfd072464bfdddafa0ec /900-implements.yarn | |
parent | e15496ed559c07996b12ccbddcd3491408bc5b0a (diff) | |
download | server-yarns-7a9e116bf7a31ecf410b9fd474abbe8c13dcb0ce.tar.gz |
Implement HTTP status testing
Diffstat (limited to '900-implements.yarn')
-rw-r--r-- | 900-implements.yarn | 6 |
1 files changed, 5 insertions, 1 deletions
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 |