(self)
| 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: |