diff options
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -119,12 +119,16 @@ class Result: @type name: str @type check: str or (str -> bool) """ + found = False for key, value in self.headersdata: if key == name: + found = True if isinstance(check, str): self.testcase.assertEqual(check, value) else: self.testcase.assert_(check(value)) + if not found: + self.testcase.fail("header %s not found" % name) from wsgitools import applications |