def _TestUnlinkIdentity(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('unlink_identity', user_cookie, request_dict)
 op_dict = tester._DeriveNotificationOpDict(user_id, device_id, request_dict)
 validator.ValidateUnlinkIdentity(op_dict, request_dict['identity'])
 tester._CompareResponseDicts('unlink_identity', user_id, request_dict, {}, actual_dict)
 return actual_dict

def _TestUnlinkIdentity ( 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 ( 'unlink_identity' , user_cookie , request_dict ) op_dict = tester . _DeriveNotificationOpDict ( user_id , device_id , request_dict ) validator . ValidateUnlinkIdentity ( op_dict , request_dict [ 'identity' ] ) tester . _CompareResponseDicts ( 'unlink_identity' , user_id , request_dict , { } , actual_dict ) return actual_dict
called by the servicetester in order to test unlink_identity service api call .