()
| 715 | |
| 716 | |
| 717 | def test_cannot_read_after_stream_consumed(): |
| 718 | response = httpx.Response( |
| 719 | 200, |
| 720 | content=streaming_body(), |
| 721 | ) |
| 722 | |
| 723 | content = b"" |
| 724 | for part in response.iter_bytes(): |
| 725 | content += part |
| 726 | |
| 727 | with pytest.raises(httpx.StreamConsumed): |
| 728 | response.read() |
| 729 | |
| 730 | |
| 731 | @pytest.mark.anyio |
nothing calls this directly
no test coverage detected