def test_https_skip_accept_encoding(self): response = self.session.get("https://httpbin.org/get", headers={}, config={"base_headers": {}}) self.assertNotIn("accept-encoding", lower_keys(json.loads(response.text)["headers"]))
def test_https(self): response = self.session.get("https://httpbin.org/get", headers={}, config={"base_headers": {}}) self.assertIn("host", lower_keys(json.loads(response.text)["headers"]))