MCPcopy
hub / github.com/urllib3/urllib3 / test_reference_read1_without_limit

Method test_reference_read1_without_limit

test/test_response.py:330–335  ·  view source on GitHub ↗
(
        self, read1_args: tuple[typing.Any, ...]
    )

Source from the content-addressed store, hash-verified

328
329 @pytest.mark.parametrize("read1_args", ((), (None,), (-1,)))
330 def test_reference_read1_without_limit(
331 self, read1_args: tuple[typing.Any, ...]
332 ) -> None:
333 fp = BytesIO(b"foo")
334 r = HTTPResponse(fp, preload_content=False)
335 assert r.read1(*read1_args) == b"foo"
336
337 def test_reference_read1_nodecode(self) -> None:
338 fp = BytesIO(b"foobar")

Callers

nothing calls this directly

Calls 2

read1Method · 0.95
HTTPResponseClass · 0.90

Tested by

no test coverage detected