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

Function test_response_constructor_with_content

impit-python/test/response_test.py:26–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26def test_response_constructor_with_content() -> None:
27 # Create a new response object with content
28 response = Response(200, content=b'Test content')
29
30 assert response.status_code == 200
31 assert response.content == b'Test content'
32 assert response.text == 'Test content'
33
34
35def test_response_constructor_with_headers() -> None:

Callers

nothing calls this directly

Calls 1

ResponseClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…