MCPcopy Index your code
hub / github.com/microsoft/playwright-python / test_response_body_should_work

Function test_response_body_should_work

tests/async/test_network.py:590–599  ·  view source on GitHub ↗
(
    page: Page, server: Server, assetdir: Path
)

Source from the content-addressed store, hash-verified

588
589
590async 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
602async def test_response_body_should_work_with_compression(

Callers

nothing calls this directly

Calls 2

gotoMethod · 0.45
bodyMethod · 0.45

Tested by

no test coverage detected