def test_service_results(self):
        """Test results.DataCollection.services to return available services."""
        datasets = search_datasets(
            short_name="MUR-JPL-L4-GLOB-v4.1",
            cloud_hosted=True,
            temporal=("2024-02-27T00:00:00Z", "2024-02-29T00:00:00Z"),
        )
        earthaccess._auth.authenticated = False

        assert len(datasets) > 0
        results = datasets[0].services()

        self.assertTrue(
            results["S2004184019-POCLOUD"][0]["meta"]["provider-id"] == "POCLOUD"
        )
        self.assertTrue(
            results["S2004184019-POCLOUD"][0]["umm"]["URL"]["URLValue"]
            == "https://opendap.earthdata.nasa.gov/"
        )
        self.assertTrue(
            results["S2606110201-XYZ_PROV"][0]["umm"]["Name"]
            == "Harmony GDAL Adapter (HGA)"
        )
        self.assertTrue(results["S2164732315-XYZ_PROV"][0]["umm"]["Type"] == "Harmony")
Test results.DataCollection.services to return available services.
tests/unit/test_services.py