diff options
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -120,7 +120,7 @@ class Result(object): if isinstance(check, str): self.testcase.assertEqual(check, value) else: - self.testcase.assert_(check(value)) + self.testcase.assertTrue(check(value)) if not found: self.testcase.fail("header %s not found" % name) @@ -397,8 +397,8 @@ class RequestLogWSGIFilterTest(unittest.TestCase): req.environ["HTTP_USER_AGENT"] = "wsgitools-test" res = req(app) logged = log.getvalue() - self.assert_(re.match(r'^1\.2\.3\.4 - - \[[^]]+\] "GET /" ' - r'200 7 - "wsgitools-test"', logged)) + self.assertTrue(re.match(r'^1\.2\.3\.4 - - \[[^]]+\] "GET /" ' + r'200 7 - "wsgitools-test"', logged)) class GzipWSGIFilterTest(unittest.TestCase): def testSimple(self): |