MCPcopy
hub / github.com/urllib3/urllib3 / test_reference_read_until_eof

Method test_reference_read_until_eof

test/test_response.py:314–317  ·  view source on GitHub ↗
(self, read_args: tuple[typing.Any, ...])

Source from the content-addressed store, hash-verified

312
313 @pytest.mark.parametrize("read_args", ((), (None,), (-1,)))
314 def test_reference_read_until_eof(self, read_args: tuple[typing.Any, ...]) -> None:
315 fp = BytesIO(b"foo")
316 r = HTTPResponse(fp, preload_content=False)
317 assert r.read(*read_args) == b"foo"
318
319 def test_reference_read1(self) -> None:
320 fp = BytesIO(b"foobar")

Callers

nothing calls this directly

Calls 2

readMethod · 0.95
HTTPResponseClass · 0.90

Tested by

no test coverage detected