#NEWLINE# def test_single_node_cluster_retry( self ) : #NEWLINE# #INDENT# retry_context = ClusterRetryContext ( cluster_size = 1 ) #NEWLINE# ( should_stop , wait ) = retry_context . test_should_stop ( ) #NEWLINE# self . assertFalse ( should_stop , 'Not done trying.' ) #NEWLINE# self . assertEqual ( should_stop , 10 ) #NEWLINE# ( should_stop , wait ) = retry_context . test_should_stop ( ) #NEWLINE# self . assertFalse ( should_stop , 'Not done trying.' ) #NEWLINE# self . assertEqual ( wait , 10 ) #NEWLINE# ( should_stop , wait ) = retry_context . test_should_stop ( ) #NEWLINE# self . assertTrue ( should_stop , 'Done trying.' ) #NEWLINE# self . assertEqual ( wait , ( - 1 ) )