def client(): app = falcon.API() resource = RedirectingResource() app.add_route('/', resource) return testing.TestClient(app)