#NEWLINE# def parseTests( data ) : #NEWLINE# #INDENT# parts = map ( str . strip , data . split ( ( ( '=' * 40 ) + '\n' ) ) ) #NEWLINE# assert ( not parts [ 0 ] ) #NEWLINE# ( _ , ph , pdat , mh , mdat ) = parts #NEWLINE# tests = [ ] #NEWLINE# tests . extend ( getTests ( _ParseTest , [ 'bad' , 'insane' , 'sane' ] , ph , pdat ) ) #NEWLINE# tests . extend ( getTests ( _MatchTest , [ 1 , 0 ] , mh , mdat ) ) #NEWLINE# return tests