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

Method test_proxy_auth_empty_pass

tests/test_requests.py:2199–2202  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2197 assert headers == {"Proxy-Authorization": "Basic dXNlcjpwYXNz"}
2198
2199 def test_proxy_auth_empty_pass(self):
2200 adapter = HTTPAdapter()
2201 headers = adapter.proxy_headers("http://user:@httpbin.org")
2202 assert headers == {"Proxy-Authorization": "Basic dXNlcjo="}
2203
2204 def test_response_json_when_content_is_None(self, httpbin):
2205 r = requests.get(httpbin("/status/204"))

Callers

nothing calls this directly

Calls 2

proxy_headersMethod · 0.95
HTTPAdapterClass · 0.90

Tested by

no test coverage detected