Function
test_response_body_should_work
(
page: Page, server: Server, assetdir: Path
)
Source from the content-addressed store, hash-verified
| 588 | |
| 589 | |
| 590 | async def test_response_body_should_work( |
| 591 | page: Page, server: Server, assetdir: Path |
| 592 | ) -> None: |
| 593 | response = await page.goto(server.PREFIX + "/pptr.png") |
| 594 | assert response |
| 595 | with open( |
| 596 | assetdir / "pptr.png", |
| 597 | "rb", |
| 598 | ) as fd: |
| 599 | assert fd.read() == await response.body() |
| 600 | |
| 601 | |
| 602 | async def test_response_body_should_work_with_compression( |
Callers
nothing calls this directly
Tested by
no test coverage detected