def METHOD_NAME(self):
    mock_disconnect = MagicMock()
    with patch.dict(
        esxdatacenter.__salt__,
        {
            "vsphere.disconnect": mock_disconnect,
            "vsphere.list_datacenters_via_proxy": MagicMock(
                side_effect=CommandExecutionError("Error")
            ),
        },
    ):
        res = esxdatacenter.datacenter_configured("fake_dc")
    mock_disconnect.assert_called_once_with(self.mock_si)
    self.assertDictEqual(
        res, {"name": "fake_dc", "changes": {}, "result": False, "comment": "Error"}
    )