def METHOD_NAME(tmp_path):
    """
    test file.keyvalue when key_values not a dict
    """
    contents = dedent(
        """\
        #PermitRootLogin prohibit-password
        #StrictMode yes
        """
    )
    with pytest.helpers.temp_file(
        "tempfile", contents=contents, directory=tmp_path
    ) as tempfile:
        ret = filestate.keyvalue(
            name=str(tempfile),
            key_values=["PermiteRootLogin", "yes"],
            separator=" ",
            uncomment="#",
            key_ignore_case=True,
        )
        assert (
            ret["comment"]
            == "file.keyvalue key and value not supplied and key_values is not a dictionary"
        )
        f_contents = tempfile.read_text()
        assert "PermitRootLogin yes" not in f_contents
        assert "#StrictMode yes" in f_contents