#NEWLINE# def test_for_closed_index( self ) : #NEWLINE# #INDENT# client = Mock ( ) #NEWLINE# client . indices . get_settings . return_value = testvars . settings_2_closed #NEWLINE# client . cluster . state . return_value = testvars . cs_two_closed #NEWLINE# client . indices . stats . return_value = testvars . stats_two #NEWLINE# il = curator . IndexList ( il ) #NEWLINE# self . assertEqual ( 'close' , il . index_info [ 'index-2016.03.03' ] [ 'state' ] )