def test__cancel_http(): api_request = mock.Mock() operation._cancel_http(api_request, TEST_OPERATION_NAME) api_request.assert_called_once_with( method="POST", path="operations/{}:cancel".format(TEST_OPERATION_NAME))
def test__cancel_http(): api_request = mock.Mock() operation._cancel_http(api_request, TEST_OPERATION_NAME) api_request.assert_called_once_with( method='POST', path='operations/{}:cancel'.format(TEST_OPERATION_NAME))