MCPcopy
hub / github.com/urllib3/urllib3 / test_no_ssl

Method test_no_ssl

test/with_dummyserver/test_https.py:375–381  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

373 )
374
375 def test_no_ssl(self) -> None:
376 with HTTPSConnectionPool(self.host, self.port) as pool:
377 pool.ConnectionCls = None # type: ignore[assignment]
378 with pytest.raises(ImportError):
379 pool._new_conn()
380 with pytest.raises(ImportError):
381 pool.request("GET", "/", retries=0)
382
383 def test_unverified_ssl(self) -> None:
384 """Test that bare HTTPSConnection can connect, make requests"""

Callers

nothing calls this directly

Calls 3

HTTPSConnectionPoolClass · 0.90
_new_connMethod · 0.45
requestMethod · 0.45

Tested by

no test coverage detected