Rework Bytestring Host Test to use PyTest Httpbin

This commit is contained in:
Brian Bamsch
2016-09-28 20:45:26 -07:00
parent 1ac56f1343
commit 5c15fffaca
+2 -2
View File
@@ -858,11 +858,11 @@ class TestRequests:
prep = s.prepare_request(req)
assert prep.url == "https://httpbin.org/"
def test_request_with_bytestring_host(self):
def test_request_with_bytestring_host(self, httpbin):
s = requests.Session()
resp = s.request(
'GET',
'http://httpbin.org/cookies/set?cookie=value',
httpbin('cookies/set?cookie=value'),
allow_redirects=False,
headers={'Host': b'httpbin.org'}
)