Home / Function/ test_DIGESTAUTH_WRONG_HTTP_401_GET() — requests Function Reference

test_DIGESTAUTH_WRONG_HTTP_401_GET() — requests Function Reference

Architecture documentation for the test_DIGESTAUTH_WRONG_HTTP_401_GET() function in test_requests.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  e5b57683_5e9f_1e26_13fe_11e885c20036["test_DIGESTAUTH_WRONG_HTTP_401_GET()"]
  22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"]
  e5b57683_5e9f_1e26_13fe_11e885c20036 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14
  style e5b57683_5e9f_1e26_13fe_11e885c20036 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_requests.py lines 786–800

    def test_DIGESTAUTH_WRONG_HTTP_401_GET(self, httpbin):
        for authtype in self.digest_auth_algo:
            auth = HTTPDigestAuth("user", "wrongpass")
            url = httpbin("digest-auth", "auth", "user", "pass", authtype)

            r = requests.get(url, auth=auth)
            assert r.status_code == 401

            r = requests.get(url)
            assert r.status_code == 401

            s = requests.session()
            s.auth = auth
            r = s.get(url)
            assert r.status_code == 401

Domain

Subdomains

Frequently Asked Questions

What does test_DIGESTAUTH_WRONG_HTTP_401_GET() do?
test_DIGESTAUTH_WRONG_HTTP_401_GET() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_DIGESTAUTH_WRONG_HTTP_401_GET() defined?
test_DIGESTAUTH_WRONG_HTTP_401_GET() is defined in tests/test_requests.py at line 786.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free