#NEWLINE# def test_invalid_tag( 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_allocated ( key = 'invalid' , value = 'foo' , allocation_type = 'include' ) #NEWLINE# self . assertEqual ( [ 'index-2016.03.03' , 'index-2016.03.04' ] , sorted ( self . indices ) )