<s> """<STR_LIT>""" <EOL> import unittest <EOL> class TestCase ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def assertRaisesWithMessage ( self , exception_type , message , func , <EOL> * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> func ( * args , ** kwargs ) <EOL> except exception_type as err : <EOL> self . assertEqual ( err . args [ <NUM_LIT:0> ] , message ) <EOL> else : <EOL> self . fail ( '<STR_LIT>' <EOL> . format ( func . __name__ , exception_type . __name__ ) ) </s>
