#NEWLINE# def test_field_stats_missing_field( 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 ( il ) #NEWLINE# self . assertRaises ( curator . MissingArgument , il . filter_by_age , source = 'field_stats' , direction = 'older' , unit = 'days' , unit_count = 1 )