MCPcopy
hub / github.com/psf/requests / test_HTTP_200_OK_GET_ALTERNATIVE

Method test_HTTP_200_OK_GET_ALTERNATIVE

tests/test_requests.py:205–212  ·  view source on GitHub ↗
(self, httpbin)

Source from the content-addressed store, hash-verified

203 assert r.status_code == 200, f"failed for scheme {scheme}"
204
205 def test_HTTP_200_OK_GET_ALTERNATIVE(self, httpbin):
206 r = requests.Request("GET", httpbin("get"))
207 s = requests.Session()
208 s.proxies = getproxies()
209
210 r = s.send(r.prepare())
211
212 assert r.status_code == 200
213
214 def test_HTTP_302_ALLOW_REDIRECT_GET(self, httpbin):
215 r = requests.get(httpbin("redirect", "1"))

Callers

nothing calls this directly

Calls 3

sendMethod · 0.95
prepareMethod · 0.95
httpbinFunction · 0.85

Tested by

no test coverage detected