MCPcopy Index your code
hub / github.com/python-websockets/websockets / test_get_proxy

Method test_get_proxy

tests/test_proxy.py:211–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

209 self.assertEqual(parse_proxy(proxy).user_info, user_info)
210
211 def test_get_proxy(self):
212 for environ, uri, proxy in PROXY_ENVS:
213 with patch.dict(os.environ, environ):
214 with self.subTest(environ=environ, uri=uri):
215 self.assertEqual(get_proxy(parse_uri(uri)), proxy)
216
217 def test_prepare_connect_request(self):
218 for environ, uri, request in CONNECT_REQUESTS:

Callers

nothing calls this directly

Calls 2

parse_uriFunction · 0.90
get_proxyFunction · 0.85

Tested by

no test coverage detected