def METHOD_NAME(state_tree):
    with pytest.helpers.temp_file("target", "data", state_tree) as target:
        link = state_tree / "link"
        link.symlink_to(str(target))
        ret = roots.symlink_list({"saltenv": "base"})
        assert ret == {"link": str(target)}