@override_settings(SECURE_SSL_REDIRECT=True)
    def test_no_redirect_ssl(self):
        ret = self.process_request("get", "/some/url", secure=True)
        self.assertEqual(ret, None)
The middleware does not redirect secure requests.
dataset/ETHPy150Open django/django/tests/middleware/test_security.py/SecurityMiddlewareTest.test_no_redirect_ssl