def test_debug_forwarded_proto(self): self.request.META["HTTP_X_FORWARDED_PROTO"] = "https" self.assertEqual(get_scheme(self.request), "https")
def test_debug_no_request(self): self.assertEqual(get_scheme(None), "https")
def test_config_param(self): self.assertEqual(get_scheme(self.request, config), "https")
def test_debug(self): self.assertEqual(get_scheme(self.request), "http")
def test_default(self): self.assertEqual(get_scheme(self.request), "https")