.
requests.put('https://api.example.com/api/users/1', json=updated_user) 29 assert response.status_code == 200, f"Status code is {response.status_code}, expected 200" 30 assert "user" in response.json(), f"JSON response does not contain 'user' key" 31 assert isinstance(response.json()["user"], dict),