def METHOD_NAME(
    self,
    url: str,
    method: Literal["get", "post", "patch", "put", "delete"],
    headers: Optional[Dict[str, str]] = None,
    **kwargs: Any,
):
    with self.app.test_client() as client:
        response = getattr(client, method)(url, headers=headers, **kwargs)
    return Response(
        status_code=response.status_code,
        data=response.data,
        headers=response.headers,
    )