#NEWLINE# def testParserFiltering( self ) : #NEWLINE# #INDENT# json_options = self . options #NEWLINE# json_options [ 'parser' ] = 'JSONParser' #NEWLINE# json_options [ 'ip_ua_fields' ] = 'ua:user_agent,ip:user_ip' #NEWLINE# i = 0 #NEWLINE# for l in filterbots ( fh = self . json_fh , ** i ) : #NEWLINE# #INDENT# i += 1 #NEWLINE# #UNINDENT# self . assertEquals ( i , 1 , ( 'filterbots output size different than expected: %s' % str ( i ) ) )