#NEWLINE# def test_creation_date_younger_than_now( 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 = 'creation_date' , direction = 'younger' , unit = 'days' , unit_count = 1 ) #NEWLINE# self . assertEqual ( [ ] , sorted ( self . indices ) )