MCPcopy
hub / github.com/scrapy/scrapy / test_payload

Method test_payload

tests/test_core_downloader.py:122–127  ·  view source on GitHub ↗
(
        self, factory: _ScrapyClientContextFactory, server_url: str
    )

Source from the content-addressed store, hash-verified

120
121 @coroutine_test
122 async def test_payload(
123 self, factory: _ScrapyClientContextFactory, server_url: str
124 ) -> None:
125 s = "0123456789" * 10
126 body = await self.get_page(server_url + "payload", factory, body=s)
127 assert body == to_bytes(s)
128
129 @pytest.mark.skipif(
130 TWISTED_TLS_NEW_IMPL,

Callers

nothing calls this directly

Calls 2

to_bytesFunction · 0.90
get_pageMethod · 0.80

Tested by

no test coverage detected