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