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

Method test_proxy_auth

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

Source from the content-addressed store, hash-verified

2192 proxies["two"].clear.assert_called_once_with()
2193
2194 def test_proxy_auth(self):
2195 adapter = HTTPAdapter()
2196 headers = adapter.proxy_headers("http://user:pass@httpbin.org")
2197 assert headers == {"Proxy-Authorization": "Basic dXNlcjpwYXNz"}
2198
2199 def test_proxy_auth_empty_pass(self):
2200 adapter = HTTPAdapter()

Callers

nothing calls this directly

Calls 2

proxy_headersMethod · 0.95
HTTPAdapterClass · 0.90

Tested by

no test coverage detected