def test_not_found_exception(exception_app):
 (request, response) = sanic_endpoint_test(exception_app, uri='/404')
 assert (response.status == 404)

def test_not_found_exception ( exception_app ) : ( request , response ) = sanic_endpoint_test ( exception_app , uri = '/404' ) assert ( response . status == 404 )
test the built-in notfound exception works .