#NEWLINE# def test_field_stats_older_than_past_date_max( 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_age ( source = 'field_stats' , direction = 'older' , field = 'timestamp' , stats_result = 'max_value' , unit = 'seconds' , unit_count = 0 , epoch = 1457049600 ) #NEWLINE# self . assertEqual ( [ 'index-2016.03.03' ] , sorted ( il . indices ) )