()
| 598 | |
| 599 | |
| 600 | def test_iter_text(): |
| 601 | response = httpx.Response( |
| 602 | 200, |
| 603 | content=b"Hello, world!", |
| 604 | ) |
| 605 | |
| 606 | content = "" |
| 607 | for part in response.iter_text(): |
| 608 | content += part |
| 609 | assert content == "Hello, world!" |
| 610 | |
| 611 | |
| 612 | def test_iter_text_with_chunk_size(): |