#NEWLINE# def _TestTerminateAccount( tester , user_cookie , request_dict ) : #NEWLINE# #INDENT# 'Called by the ServiceTester in order to test terminate_account\n  service API call.\n  ' #NEWLINE# validator = tester . validator #NEWLINE# ( user_id , device_id ) = tester . GetIdsFromCookie ( user_cookie ) #NEWLINE# request_dict = deepcopy ( request_dict ) #NEWLINE# actual_dict = tester . SendRequest ( 'terminate_account' , user_cookie , request_dict ) #NEWLINE# op_dict = tester . _DeriveNotificationOpDict ( user_id , device_id , request_dict ) #NEWLINE# validator . ValidateTerminateAccount ( user_id , op_dict ) #NEWLINE# tester . _CompareResponseDicts ( 'terminate_account' , user_id , request_dict , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , actual_dict ) #NEWLINE# return actual_dict