def _TestSavePhotos(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('save_photos', user_cookie, request_dict)
 _ValidateSavePhotos(tester, user_id, device_id, request_dict)
 tester._CompareResponseDicts('save_photos', user_id, request_dict, {}, actual_dict)
 return actual_dict

def _TestSavePhotos ( 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 ( 'save_photos' , user_cookie , request_dict ) _ValidateSavePhotos ( tester , user_id , device_id , request_dict ) tester . _CompareResponseDicts ( 'save_photos' , user_id , request_dict , { } , actual_dict ) return actual_dict
called by the servicetester in order to test save_photos service api call .