def METHOD_NAME():
    """
    Test to ensure a container is not present, destroying it if present.
    """
    name = "web01"
    ret = {"name": name, "result": True, "comment": "", "changes": {}}
    mock = MagicMock(side_effect=[False, True, True])
    mock_des = MagicMock(return_value={"state": True})
    with patch.dict(lxc.__salt__, {"lxc.exists": mock, "lxc.destroy": mock_des}):
        comt = "Container '{}' does not exist".format(name)
        ret.update({"comment": comt})
        assert lxc.absent(name) == ret
        with patch.dict(lxc.__opts__, {"test": True}):
            comt = "Container '{}' would be destroyed".format(name)
            ret.update({"comment": comt, "result": None})
            assert lxc.absent(name) == ret
        with patch.dict(lxc.__opts__, {"test": False}):
            comt = "Container '{}' was destroyed".format(name)
            ret.update({"comment": comt, "result": True, "changes": {"state": True}})
            assert lxc.absent(name) == ret