#NEWLINE# def testAC( self ) : #NEWLINE# #INDENT# 'Aho-Corasick-based matching' #NEWLINE# lines = 0 #NEWLINE# for l in logfilter ( self . testset , blacklist = self . blacklist , field = 1 , delimiter = '\t' , with_acora = True , ignorecase = False , word_boundaries = False ) : #NEWLINE# #INDENT# lines += 1 #NEWLINE# #UNINDENT# self . assertEquals ( lines , self . exp_emitted , ( 'Number of lines emitted was not as expected: %s (Expected: %s)' % ( l , self . exp_emitted ) ) )