#NEWLINE# def test_should_stop( self ) : #NEWLINE# #INDENT# should_stop = True #NEWLINE# if ( self . _nodes_attempted > ( self . cluster_size * self . cluster_retry ) ) : #NEWLINE# #INDENT# return ( should_stop , ( - 1 ) ) #NEWLINE# #UNINDENT# wait = 0 #NEWLINE# should_stop = False #NEWLINE# if ( ( self . _nodes_attempted % self . cluster_size ) == 0 ) : #NEWLINE# #INDENT# wait = self . wait_between_cluster #NEWLINE# #UNINDENT# self . _nodes_attempted += 1 #NEWLINE# return ( should_stop , wait )