Complete the code to check if the response status code is 200.
assert response.status_code == [1]The status code 200 means the request was successful.
Complete the code to verify the response JSON contains the key 'success'.
assert 'success' [1] response.json()
The 'in' keyword checks if 'success' is a key in the JSON response.
Fix the error in the assertion to check the response time is less than 500 milliseconds.
assert response.elapsed.total_seconds() * 1000 [1] 500
The response time should be less than 500 ms, so use '<'.
Complete the code to extract the 'data' field from the JSON response and check it is a list.
data = response.json()'data' assert isinstance(data, [1])
Use square brackets to get 'data' from JSON dict, then check if it is a list.
Fill all three blanks to create a test that asserts the response JSON has a 'status' key with value 'ok'.
json_data = response.json() assert [1] and json_data[2] [3] 'ok'
Check if 'status' key exists, get its value, and assert it equals 'ok'.
