def METHOD_NAME(mocker, *args):
    cli_args = parse_args(["list", *args])
    assert cli_args.func == CmdList
    cmd = cli_args.func(cli_args)
    m = mocker.patch("dvc.repo.Repo.ls")
    assert cmd.run() == 0
    return m