()
| 699 | |
| 700 | @pytest.mark.anyio |
| 701 | async def test_async_streaming_response(): |
| 702 | response = httpx.Response( |
| 703 | 200, |
| 704 | content=async_streaming_body(), |
| 705 | ) |
| 706 | |
| 707 | assert response.status_code == 200 |
| 708 | assert not response.is_closed |
| 709 | |
| 710 | content = await response.aread() |
| 711 | |
| 712 | assert content == b"Hello, world!" |
| 713 | assert response.content == b"Hello, world!" |
| 714 | assert response.is_closed |
| 715 | |
| 716 | |
| 717 | def test_cannot_read_after_stream_consumed(): |
nothing calls this directly
no test coverage detected