def METHOD_NAME(tmp_path, definer):
    (tmp_path / "config.ert").write_text(
        "NUM_REALIZATIONS 1\n"
        f"{definer} <KEY1> x1\n"
        f"{definer} A B\n"
        f"{definer} <A<B>> C\n"
        f"{definer} <A><B> C\n"
    )
    suggestions = make_suggestion_list(str(tmp_path / "config.ert"))
    assert len(suggestions) == 3
    for suggestion, expected in zip(
        suggestions,
        [
            " Please change A to <A>",
            " Please change <A<B>> to <AB>",
            " Please change <A><B> to <AB>",
        ],
    ):
        assert (
            f"Using {definer} with substitution strings"
            " that are not of the form '<KEY>' is deprecated." in suggestion
        )
        assert suggestion.endswith(expected)