diff --git a/tests/regressiontests/middleware/tests.py b/tests/regressiontests/middleware/tests.py index 1738c202376..5e7fd320d6c 100644 --- a/tests/regressiontests/middleware/tests.py +++ b/tests/regressiontests/middleware/tests.py @@ -66,7 +66,7 @@ class CommonMiddlewareTest(TestCase): try: CommonMiddleware().process_request(request) except RuntimeError, e: - self.assertTrue('end in a slash' in str(e)) + self.failUnless('end in a slash' in str(e)) settings.DEBUG = False def test_append_slash_disabled(self):