async def METHOD_NAME(
    cmd: list[str], exit_code: int, output: str
) -> None:
    with pytest.raises(r_clone.RCloneFailedError) as exe_info:
        await r_clone._async_r_clone_command(*cmd)  # noqa: SLF001
    assert (
        f"{exe_info.value}"
        == f"Command {' '.join(cmd)} finished with exit code={exit_code}:\n{output}\n"
    )