def METHOD_NAME(self):
    mock_get_service_instance = MagicMock()
    with patch.dict(
        esxdatacenter.__salt__,
        {"vsphere.get_service_instance_via_proxy": mock_get_service_instance},
    ):
        esxdatacenter.datacenter_configured("fake_dc")
    mock_get_service_instance.assert_called_once_with()