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

Method test_DIGEST_AUTH_SETS_SESSION_COOKIES

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

Source from the content-addressed store, hash-verified

773 assert r.status_code == 200
774
775 def test_DIGEST_AUTH_SETS_SESSION_COOKIES(self, httpbin):
776 for authtype in self.digest_auth_algo:
777 url = httpbin("digest-auth", "auth", "user", "pass", authtype)
778 auth = HTTPDigestAuth("user", "pass")
779 s = requests.Session()
780 s.get(url, auth=auth)
781 assert s.cookies["fake"] == "fake_value"
782
783 def test_DIGEST_STREAM(self, httpbin):
784 for authtype in self.digest_auth_algo:

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
HTTPDigestAuthClass · 0.90
httpbinFunction · 0.85

Tested by

no test coverage detected