#NEWLINE# def test_filter_result_by_name( self ) : #NEWLINE# #INDENT# client = Mock ( ) #NEWLINE# client . indices . get_settings . return_value = testvars . settings_two #NEWLINE# client . cluster . state . return_value = testvars . clu_state_two #NEWLINE# client . indices . stats . return_value = testvars . stats_two #NEWLINE# client . field_stats . return_value = testvars . fieldstats_two #NEWLINE# il = curator . IndexList ( client ) #NEWLINE# il . filter_by_space ( disk_space = 1.1 ) #NEWLINE# self . assertEqual ( [ 'index-2016.03.03' ] , il . indices )