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

Method test_content

impit-python/test/no_client_test.py:309–315  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

307 assert response.json()['data'] == 'foo'
308
309 def test_content(self) -> None:
310 response = impit.get(get_httpbin_url('/'))
311
312 assert response.status_code == 200
313 assert isinstance(response.content, bytes)
314 assert isinstance(response.text, str)
315 assert response.content.decode('utf-8') == response.text
316
317 def test_json(self) -> None:
318 response = impit.get(get_httpbin_url('/get'))

Callers

nothing calls this directly

Calls 2

get_httpbin_urlFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected