Function to verify response with status Args: response (json object) Raises: VerifyResponseError if there is a problem with the response.
(response)
| 96 | |
| 97 | |
| 98 | def verify_response(response): |
| 99 | """ Function to verify response with status |
| 100 | Args: |
| 101 | response (json object) |
| 102 | |
| 103 | Raises: |
| 104 | VerifyResponseError if there is a problem with the response. |
| 105 | """ |
| 106 | if not response: |
| 107 | raise VerifyResponseError("No response found.") |
| 108 | if "status" not in response or not response["status"]: |
| 109 | raise VerifyResponseError("Response did not have a status.") |
| 110 | |
| 111 | |
| 112 | def verify_transaction(transaction, fabricate_proxy_requests=False): |
no test coverage detected