@override_settings(SECURE_CONTENT_TYPE_NOSNIFF=True)
    def test_content_type_on(self):
        self.assertEqual(self.process_response()["x-content-type-options"], "nosniff")
With CONTENT_TYPE_NOSNIFF set to True, the middleware adds
dataset/ETHPy150Open django/django/tests/middleware/test_security.py/SecurityMiddlewareTest.test_content_type_on