summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test.py b/test.py
index bbb11b9..1c7260a 100755
--- a/test.py
+++ b/test.py
@@ -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):