()
| 427 | |
| 428 | |
| 429 | def test_iter_raw_on_iterable(): |
| 430 | response = httpx.Response( |
| 431 | 200, |
| 432 | content=StreamingBody(), |
| 433 | ) |
| 434 | |
| 435 | raw = b"" |
| 436 | for part in response.iter_raw(): |
| 437 | raw += part |
| 438 | assert raw == b"Hello, world!" |
| 439 | |
| 440 | |
| 441 | def test_iter_raw_on_async(): |
nothing calls this directly
no test coverage detected