def METHOD_NAME():
    with patch.dict(
        postgres_extension.__salt__,
        {
            "postgres.is_installed_extension": Mock(side_effect=[True, True]),
            "postgres.drop_extension": Mock(side_effect=[False, False]),
        },
    ):
        with patch.dict(postgres_extension.__opts__, {"test": True}):
            ret = postgres_extension.absent("foo")
        assert ret == {
            "comment": "Extension foo is set to be removed",
            "changes": {},
            "name": "foo",
            "result": None,
        }