def METHOD_NAME(mocker, tmpdir):
    work_dir = str(tmpdir.mkdir("work_dir"))
    mock_rmtree = mocker.patch("shutil.rmtree")
    result = run_cekit_cache(["-v", "--work-dir", work_dir, "clear"], 0, "y\n")
    mock_rmtree.assert_called_once_with(os.path.join(work_dir, "cache"))
    assert "Artifact cache cleared!" in result.output