summaryrefslogtreecommitdiff
path: root/tests/check_framework/test_security.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check_framework/test_security.py')
-rw-r--r--tests/check_framework/test_security.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/check_framework/test_security.py b/tests/check_framework/test_security.py
index e6fe1f6cb7..e6728606ef 100644
--- a/tests/check_framework/test_security.py
+++ b/tests/check_framework/test_security.py
@@ -402,38 +402,6 @@ class CheckContentTypeNosniffTest(SimpleTestCase):
self.assertEqual(self.func(None), [])
-class CheckXssFilterTest(SimpleTestCase):
- @property
- def func(self):
- from django.core.checks.security.base import check_xss_filter
- return check_xss_filter
-
- @override_settings(
- MIDDLEWARE=["django.middleware.security.SecurityMiddleware"],
- SECURE_BROWSER_XSS_FILTER=False,
- )
- def test_no_xss_filter(self):
- """
- Warn if SECURE_BROWSER_XSS_FILTER isn't True.
- """
- self.assertEqual(self.func(None), [base.W007])
-
- @override_settings(MIDDLEWARE=[], SECURE_BROWSER_XSS_FILTER=False)
- def test_no_xss_filter_no_middleware(self):
- """
- Don't warn if SECURE_BROWSER_XSS_FILTER isn't True and
- SecurityMiddleware isn't in MIDDLEWARE.
- """
- self.assertEqual(self.func(None), [])
-
- @override_settings(
- MIDDLEWARE=["django.middleware.security.SecurityMiddleware"],
- SECURE_BROWSER_XSS_FILTER=True,
- )
- def test_with_xss_filter(self):
- self.assertEqual(self.func(None), [])
-
-
class CheckSSLRedirectTest(SimpleTestCase):
@property
def func(self):