MCPcopy
hub / github.com/urllib3/urllib3 / test_poolmanager_blocksize

Method test_poolmanager_blocksize

test/test_poolmanager.py:421–431  ·  view source on GitHub ↗

Assert PoolManager sets blocksize properly

(
        self, input_blocksize: int, expected_blocksize: int
    )

Source from the content-addressed store, hash-verified

419 ],
420 )
421 def test_poolmanager_blocksize(
422 self, input_blocksize: int, expected_blocksize: int
423 ) -> None:
424 """Assert PoolManager sets blocksize properly"""
425 p = PoolManager()
426
427 pool_blocksize = p.connection_from_url(
428 "http://example.com", {"blocksize": input_blocksize}
429 )
430 assert pool_blocksize.conn_kw["blocksize"] == expected_blocksize
431 assert pool_blocksize._get_conn().blocksize == expected_blocksize
432
433 @pytest.mark.parametrize(
434 "url",

Callers

nothing calls this directly

Calls 3

connection_from_urlMethod · 0.95
PoolManagerClass · 0.90
_get_connMethod · 0.80

Tested by

no test coverage detected