def METHOD_NAME(self):
    """
    Test _list_resources_by_type function for every type in GeonodeLegacyHarvester
    """
    self.assertEqual(
        self.worker._list_resources_by_type(GeoNodeResourceType.DATASET, 0)[0].resource_type,
        GeoNodeResourceType.DATASET.value,
    )
    self.assertEqual(self.worker._list_dataset_resources(1)[0].resource_type, GeoNodeResourceType.DATASET.value)
    self.assertEqual(
        self.worker._list_resources_by_type(GeoNodeResourceType.DOCUMENT, 0)[0].resource_type,
        GeoNodeResourceType.DOCUMENT.value,
    )
    self.assertEqual(self.worker._list_document_resources(1)[0].resource_type, GeoNodeResourceType.DOCUMENT.value)
    self.assertEqual(
        self.worker._list_resources_by_type(GeoNodeResourceType.MAP, 0)[0].resource_type,
        GeoNodeResourceType.MAP.value,
    )
    self.assertEqual(self.worker._list_map_resources(1)[0].resource_type, GeoNodeResourceType.MAP.value)