#NEWLINE# def test_filter_result_by_date_field_stats( self ) : #NEWLINE# #INDENT# client = Mock ( ) #NEWLINE# client . indices . get_settings . return_value = testvars . settings_four #NEWLINE# client . cluster . state . return_value = testvars . clu_state_four #NEWLINE# client . indices . stats . return_value = testvars . stats_four #NEWLINE# client . field_stats . return_value = testvars . fieldstats_four #NEWLINE# il = curator . IndexList ( client ) #NEWLINE# il . filter_by_space ( disk_space = 2.1 , use_age = True , source = 'field_stats' , field = 'timestamp' ) #NEWLINE# self . assertEqual ( [ 'a-2016.03.03' ] , il . indices )