def test_exception_in_exception_handler(exception_app):
 (request, response) = sanic_endpoint_test(exception_app, uri='/error_in_error_handler_handler')
 assert (response.status == 500)
 assert (response.body == 'An error occurred while handling an error')

def test_exception_in_exception_handler ( exception_app ) : ( request , response ) = sanic_endpoint_test ( exception_app , uri = '/error_in_error_handler_handler' ) assert ( response . status == 500 ) assert ( response . body == 'An error occurred while handling an error' )
test that an exception thrown in an error handler is handled .