MCPcopy
hub / github.com/urllib3/urllib3 / test_exception_str

Method test_exception_str

test/test_connectionpool.py:294–298  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

292 assert conn1_close.called is True
293
294 def test_exception_str(self) -> None:
295 assert (
296 str(EmptyPoolError(HTTPConnectionPool(host="localhost"), "Test."))
297 == "HTTPConnectionPool(host='localhost', port=None): Test."
298 )
299
300 def test_retry_exception_str(self) -> None:
301 assert (

Callers

nothing calls this directly

Calls 2

EmptyPoolErrorClass · 0.90
HTTPConnectionPoolClass · 0.90

Tested by

no test coverage detected