@override_settings(HSTS_SECONDS=3600)
    def test_sts_only_if_secure(self):
        self.assertNotIn("strict-transport-security", self.process_response(secure=False))
The "strict-transport-security" header is not added to responses going
dataset/ETHPy150Open django/django/tests/middleware/test_security.py/SecurityMiddlewareTest.test_sts_only_if_secure