#NEWLINE# def test_exception_with_none_code_throws_500( self ) : #NEWLINE# #INDENT# class ExceptionWithNoneCode ( Exception ) : #NEWLINE# #INDENT# code = None #NEWLINE# #UNINDENT# @ webob . dec . wsgify #NEWLINE# def fail( req ) : #NEWLINE# #INDENT# raise ExceptionWithNoneCode ( ) #NEWLINE# #UNINDENT# api = self . _wsgi_app ( fail ) #NEWLINE# resp = webob . Request . blank ( '/' ) . get_response ( api ) #NEWLINE# self . assertEqual ( 500 , resp . status_int )