#NEWLINE# def wait_for_delete( app_id , client ) : #NEWLINE# #INDENT# 'Wait for the specified app_id to not be listed in marathon\n    anymore. Waits WAIT_DELETE_S seconds inbetween checks.\n\n    :param app_id: The app_id to check for deletion\n    :param client: A MarathonClient object' #NEWLINE# while ( marathon_tools . is_app_id_running ( client , client ) is True ) : #NEWLINE# #INDENT# log . info ( 'Waiting for %s to be deleted from marathon...' , app_id ) #NEWLINE# time . sleep ( WAIT_DELETE_S )