def METHOD_NAME():
    """
    Test to verify that the named kernel module is not loaded.
    """
    name = "cheese"
    ret = {"name": name, "result": True, "comment": "", "changes": {}}
    mock_mod_list = MagicMock(return_value=[name])
    with patch.dict(kmod.__salt__, {"kmod.mod_list": mock_mod_list}):
        with patch.dict(kmod.__opts__, {"test": True}):
            comment = "Kernel module {} is set to be removed".format(name)
            ret.update({"comment": comment, "result": None})
            assert kmod.absent(name) == ret
    mock_mod_list = MagicMock(return_value=[name])
    mock_remove = MagicMock(return_value=[name])
    with patch.dict(
        kmod.__salt__, {"kmod.mod_list": mock_mod_list, "kmod.remove": mock_remove}
    ):
        with patch.dict(kmod.__opts__, {"test": False}):
            comment = "Removed kernel module {}".format(name)
            ret.update(
                {"comment": comment, "result": True, "changes": {name: "removed"}}
            )
            assert kmod.absent(name) == ret
    mock_mod_list = MagicMock(return_value=[])
    with patch.dict(kmod.__salt__, {"kmod.mod_list": mock_mod_list}):
        with patch.dict(kmod.__opts__, {"test": True}):
            comment = "Kernel module {} is already removed".format(name)
            ret.update({"comment": comment, "result": True, "changes": {}})
            assert kmod.absent(name) == ret