#NEWLINE# def assertRaisesHttpException( self , exec_class , callable , status_code = None , headers = None , content = None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# callable ( ) #NEWLINE# self . assertFail ( ) #NEWLINE# #UNINDENT# except exec_class as e : #NEWLINE# #INDENT# if status_code : #NEWLINE# #INDENT# self . assertEqual ( status_code , e . status_code ) #NEWLINE# #UNINDENT# if headers : #NEWLINE# #INDENT# self . assertDictEqual ( headers , e . headers ) #NEWLINE# #UNINDENT# if content : #NEWLINE# #INDENT# self . assertEqual ( content , e . content )