#NEWLINE# def tearDown( self ) : #NEWLINE# #INDENT# if ( record . _test_handler is not None ) : #NEWLINE# #INDENT# buf = self . _test_handler . buffer #NEWLINE# l = len ( buf ) #NEWLINE# msg = '\n' . join ( ( record . get ( 'msg' , str ( record ) ) for record in buf ) ) #NEWLINE# self . assertEqual ( l , 0 , msg = ( '%d warnings raised.\n%s' % ( l , msg ) ) )