#NEWLINE# def testParseRegex( self ) : #NEWLINE# #INDENT# filtered = 0 #NEWLINE# unfiltered = 0 #NEWLINE# for job in self . jobdict : #NEWLINE# #INDENT# if self . parser . FilterItem ( job ) : #NEWLINE# #INDENT# filtered += 1 #NEWLINE# self . assertTrue ( job [ 'Label' ] . startswith ( '0x' ) , job [ 'Label' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# unfiltered += 1 #NEWLINE# self . assertFalse ( job [ 'Label' ] . startswith ( '0x' ) , job [ 'Label' ] ) #NEWLINE# self . assertFalse ( ( 'anonymous' in job [ 'Label' ] ) , job [ 'Label' ] ) #NEWLINE# self . assertFalse ( ( 'mach_init.crash_inspector' in job [ 'Label' ] ) , job [ 'Label' ] ) #NEWLINE# #UNINDENT# #UNINDENT# self . assertEqual ( filtered , testdata . FILTERED_COUNT ) #NEWLINE# self . assertEqual ( unfiltered , ( len ( testdata . JOBS ) - testdata . FILTERED_COUNT ) )