def _TestTerminateAccount(tester, user_cookie, request_dict):
 validator = tester.validator
 (user_id, device_id) = tester.GetIdsFromCookie(user_cookie)
 request_dict = deepcopy(request_dict)
 actual_dict = tester.SendRequest('terminate_account', user_cookie, request_dict)
 op_dict = tester._DeriveNotificationOpDict(user_id, device_id, request_dict)
 validator.ValidateTerminateAccount(user_id, op_dict)
 tester._CompareResponseDicts('terminate_account', user_id, request_dict, {}, actual_dict)
 return actual_dict

def _TestTerminateAccount ( tester , user_cookie , request_dict ) : validator = tester . validator ( user_id , device_id ) = tester . GetIdsFromCookie ( user_cookie ) request_dict = deepcopy ( request_dict ) actual_dict = tester . SendRequest ( 'terminate_account' , user_cookie , request_dict ) op_dict = tester . _DeriveNotificationOpDict ( user_id , device_id , request_dict ) validator . ValidateTerminateAccount ( user_id , op_dict ) tester . _CompareResponseDicts ( 'terminate_account' , user_id , request_dict , { } , actual_dict ) return actual_dict
called by the servicetester in order to test terminate_account service api call .