@override_settings(SECURE_SSL_REDIRECT=False)
    def test_ssl_redirect_off(self):
        ret = self.process_request("get", "/some/url")
        self.assertEqual(ret, None)
With SSL_REDIRECT False, the middleware does no redirect.
dataset/ETHPy150Open django/django/tests/middleware/test_security.py/SecurityMiddlewareTest.test_ssl_redirect_off