mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Rework Bytestring Host Test to use PyTest Httpbin
This commit is contained in:
@@ -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'}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user