diff --git a/cacheunittest.py b/cacheunittest.py index 6ec58b2..f24813a 100644 --- a/cacheunittest.py +++ b/cacheunittest.py @@ -181,6 +181,6 @@ def assertBackend(self, response, backend): self.assertEqual(response.headers['X-Back'].lower(), backend.lower()) def assertRedirectURL(self, response, url): - self.assertEqual(response.reason.lower(), url.lower()) + self.assertEqual(response.location.lower(), url.lower())