#NEWLINE# def assertRawRequestRaises( self , exceptionClass , url , requestString ) : #NEWLINE# #INDENT# '\n        Verifies that the specified request string returns a protocol\n        exception corresponding to the specified class when applied to\n        all POST endpoints.\n        ' #NEWLINE# response = self . app . post ( url , headers = { #NEWLINE# #INDENT# 'Content-type' : 'application/json' , #NEWLINE# #UNINDENT# } , data = requestString ) #NEWLINE# self . assertEqual ( response . status_code , exceptionClass . httpStatus ) #NEWLINE# error = protocol . GAException . fromJsonString ( response . data ) #NEWLINE# self . assertEqual ( error . errorCode , exceptionClass . getErrorCode ( ) ) #NEWLINE# self . assertGreater ( len ( error . message ) , 0 )