def test_server_error_exception(exception_app):
 (request, response) = sanic_endpoint_test(exception_app, uri='/error')
 assert (response.status == 500)

def test_server_error_exception ( exception_app ) : ( request , response ) = sanic_endpoint_test ( exception_app , uri = '/error' ) assert ( response . status == 500 )
test the built-in servererror exception works .