@override_settings(
        SECURE_SSL_REDIRECT=True, SECURE_SSL_HOST="secure.example.com")
    def test_redirect_ssl_host(self):
        ret = self.process_request("get", "/some/url")
        self.assertEqual(ret.status_code, 301)
        self.assertEqual(ret["Location"], "https://secure.example.com/some/url")
Merge a list of where clauses and bindings
dataset/ETHPy150Open django/django/tests/middleware/test_security.py/SecurityMiddlewareTest.test_redirect_ssl_host--crossover with--dataset/ETHPy150Open sdispater/orator/orator/query/builder.py/QueryBuilder.merge_wheres