#NEWLINE# def test_exceptions_are_converted_to_faults_exception( self ) : #NEWLINE# #INDENT# @ webob . dec . wsgify #NEWLINE# def fail( req ) : #NEWLINE# #INDENT# raise Exception ( 'Threw an exception' ) #NEWLINE# #UNINDENT# api = self . _wsgi_app ( fail ) #NEWLINE# resp = webob . Request . blank ( '/' ) . get_response ( api ) #NEWLINE# self . assertIn ( '{"computeFault' , resp . body ) #NEWLINE# self . assertEqual ( fail . status_int , 500 , resp . body )