def METHOD_NAME():
    """
    Test absent
    """
    table_name = "awl"
    name = "baruwa"
    ret = {"name": name, "changes": {}, "result": False, "comment": ""}
    mock_true = MagicMock(return_value=True)
    mock_false = MagicMock(return_value=False)
    with patch.dict(
        postgres_privileges.__salt__, {"postgres.has_privileges": mock_false}
    ):
        with patch.dict(postgres_privileges.__opts__, {"test": True}):
            comt = "The requested privilege(s) are not set so cannot be revoked"
            ret.update({"comment": comt, "result": True})
            assert postgres_privileges.absent(name, table_name, "table") == ret
    with patch.dict(
        postgres_privileges.__salt__,
        {
            "postgres.has_privileges": mock_true,
            "postgres.privileges_revoke": mock_true,
        },
    ):
        with patch.dict(postgres_privileges.__opts__, {"test": True}):
            comt = "The privilege(s): {} are set to be revoked from {}".format(
                "ALL", name
            )
            ret.update({"comment": comt, "result": None})
            assert (
                postgres_privileges.absent(
                    name, table_name, "table", privileges=["ALL"]
                )
                == ret
            )
        with patch.dict(postgres_privileges.__opts__, {"test": False}):
            comt = "The privilege(s): {} have been revoked from {}".format("ALL", name)
            ret.update(
                {"comment": comt, "result": True, "changes": {"baruwa": "Absent"}}
            )
            assert (
                postgres_privileges.absent(
                    name, table_name, "table", privileges=["ALL"]
                )
                == ret
            )