def METHOD_NAME(monkeypatch):
    access = Mock()
    monkeypatch.setattr(sanic.http.http1, "access_logger", access)
    app = Sanic("test_logging")
    app.config.ACCESS_LOG = True
    @app.route("/")
    async def handler(request):
        return text(request.ip)
    request, response = app.test_client.get("/")
    access.info.assert_called_with(
        "",
        extra={
            "status": 200,
            "byte": len(response.content),
            "host": f"{request.ip}:{request.port}",
            "request": f"GET {request.scheme}://{request.host}/",
        },
    )