def METHOD_NAME(
    self,
    mock_post,
    mock_request_headers,
    mock_cert,
    mock_create_req,
    mock_json_loads,
):
    mock_response = mock.Mock()
    mock_response.status_code = 200
    mock_post.return_value = mock_response
    with self.assertRaises(InvalidResponse):
        self.base_endpoint.request(None, None, None)