MCPcopy
hub / github.com/urllib3/urllib3 / test_manager_clear

Method test_manager_clear

test/test_poolmanager.py:71–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 assert len(connections) == 5
70
71 def test_manager_clear(self) -> None:
72 p = PoolManager(5)
73
74 p.connection_from_url("http://google.com")
75 assert len(p.pools) == 1
76
77 p.clear()
78 assert len(p.pools) == 0
79
80 @pytest.mark.parametrize("url", ["http://@", None])
81 def test_nohost(self, url: str | None) -> None:

Callers

nothing calls this directly

Calls 3

connection_from_urlMethod · 0.95
clearMethod · 0.95
PoolManagerClass · 0.90

Tested by

no test coverage detected