#NEWLINE# def test_name_older_than_past_date( 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# il = curator . IndexList ( client ) #NEWLINE# il . filter_by_age ( source = 'name' , direction = 'older' , timestring = '%Y.%m.%d' , unit = 'seconds' , unit_count = 0 , epoch = 1456963201 ) #NEWLINE# self . assertEqual ( [ 'index-2016.03.03' ] , sorted ( il . indices ) )