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

Function test_empty_aread

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

Source from the content-addressed store, hash-verified

369
370@pytest.mark.anyio
371async def test_empty_aread():
372 response = httpx.Response(200)
373
374 assert response.status_code == 200
375 assert response.text == ""
376 assert response.encoding == "utf-8"
377 assert response.is_closed
378
379 content = await response.aread()
380
381 assert content == b""
382 assert response.content == b""
383 assert response.is_closed
384
385
386def test_iter_raw():

Callers

nothing calls this directly

Calls 1

areadMethod · 0.95

Tested by

no test coverage detected