def test_invalid_usage_exception(exception_app):
 (request, response) = sanic_endpoint_test(exception_app, uri='/invalid')
 assert (response.status == 400)

def test_invalid_usage_exception ( exception_app ) : ( request , response ) = sanic_endpoint_test ( exception_app , uri = '/invalid' ) assert ( response . status == 400 )
test the built-in invalidusage exception works .