mirror of
https://github.com/django/django.git
synced 2025-11-01 04:17:59 +00:00
Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
parent
c0c78f1b70
commit
f7969b0920
83 changed files with 419 additions and 429 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue