@override_settings(SECURE_HSTS_SECONDS=3600)
    def test_sts_already_present(self):
        response = self.process_response(
            secure=True,
            headers={"strict-transport-security": "max-age=7200"})
        self.assertEqual(response["strict-transport-security"], "max-age=7200")
The middleware will not override a "strict-transport-security" header
dataset/ETHPy150Open django/django/tests/middleware/test_security.py/SecurityMiddlewareTest.test_sts_already_present