#NEWLINE# def test_error_catching( self ) : #NEWLINE# #INDENT# validator = RequestValidator ( ) #NEWLINE# server = Server ( self ) #NEWLINE# server . catch_errors = True #NEWLINE# ( h , b , s ) = server . create_authorization_response ( 'https://example.com' ) #NEWLINE# self . assertIn ( 'server_error' , b ) #NEWLINE# self . assertEqual ( s , 500 )