()
| 682 | |
| 683 | |
| 684 | def test_sync_streaming_response(): |
| 685 | response = httpx.Response( |
| 686 | 200, |
| 687 | content=streaming_body(), |
| 688 | ) |
| 689 | |
| 690 | assert response.status_code == 200 |
| 691 | assert not response.is_closed |
| 692 | |
| 693 | content = response.read() |
| 694 | |
| 695 | assert content == b"Hello, world!" |
| 696 | assert response.content == b"Hello, world!" |
| 697 | assert response.is_closed |
| 698 | |
| 699 | |
| 700 | @pytest.mark.anyio |
nothing calls this directly
no test coverage detected