MCPcopy
hub / github.com/encode/httpx / test_iter_bytes

Function test_iter_bytes

tests/models/test_responses.py:530–536  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

528
529
530def test_iter_bytes():
531 response = httpx.Response(200, content=b"Hello, world!")
532
533 content = b""
534 for part in response.iter_bytes():
535 content += part
536 assert content == b"Hello, world!"
537
538
539def test_iter_bytes_with_chunk_size():

Callers

nothing calls this directly

Calls 1

iter_bytesMethod · 0.95

Tested by

no test coverage detected