MCPcopy
hub / github.com/raiden-network/raiden / assert_proper_response

Function assert_proper_response

raiden/tests/integration/api/rest/utils.py:43–48  ·  view source on GitHub ↗
(response, status_code=HTTPStatus.OK)

Source from the content-addressed store, hash-verified

41
42
43def assert_proper_response(response, status_code=HTTPStatus.OK):
44 assert (
45 response is not None
46 and response.status_code == status_code
47 and response.headers["Content-Type"] == "application/json"
48 ), response.text
49
50
51def assert_payment_secret_and_hash(response, payment):

Calls

no outgoing calls