summaryrefslogtreecommitdiff
path: root/tests/middleware/test_security.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/middleware/test_security.py')
-rw-r--r--tests/middleware/test_security.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/middleware/test_security.py b/tests/middleware/test_security.py
index 93cae6ced6..66cbf5f7b2 100644
--- a/tests/middleware/test_security.py
+++ b/tests/middleware/test_security.py
@@ -152,7 +152,7 @@ class SecurityMiddlewareTest(TestCase):
With BROWSER_XSS_FILTER set to False, the middleware does not add an
"x-xss-protection" header to the response.
"""
- self.assertFalse("x-xss-protection" in self.process_response())
+ self.assertNotIn("x-xss-protection", self.process_response())
@override_settings(SECURE_SSL_REDIRECT=True)
def test_ssl_redirect_on(self):