MCPcopy Create free account
hub / github.com/apify/impit / test_content

Method test_content

impit-python/test/async_client_test.py:521–529  ·  view source on GitHub ↗
(self, browser: Browser)

Source from the content-addressed store, hash-verified

519
520 @pytest.mark.asyncio
521 async def test_content(self, browser: Browser) -> None:
522 impit = AsyncClient(browser=browser)
523
524 response = await impit.get(get_httpbin_url('/'))
525
526 assert response.status_code == 200
527 assert isinstance(response.content, bytes)
528 assert isinstance(response.text, str)
529 assert response.content.decode('utf-8') == response.text
530
531 @pytest.mark.asyncio
532 async def test_json(self, browser: Browser) -> None:

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
AsyncClientClass · 0.90
get_httpbin_urlFunction · 0.85

Tested by

no test coverage detected