def METHOD_NAME(self):
    with patch.dict(esxdatacenter.__opts__, {"test": True}):
        with patch.dict(
            esxdatacenter.__salt__,
            {"vsphere.list_datacenters_via_proxy": MagicMock(return_value=[])},
        ):
            res = esxdatacenter.datacenter_configured("fake_dc")
    self.assertDictEqual(
        res,
        {
            "name": "fake_dc",
            "changes": {"new": {"name": "fake_dc"}},
            "result": None,
            "comment": "State will create datacenter 'fake_dc'.",
        },
    )