def METHOD_NAME(self):
    """
    Test function of _get_num_available_resources_by_type
    """
    worker = GeonodeLegacyHarvester(remote_url=self.remote_url, harvester_id=1)
    self.assertEqual(worker._get_num_available_resources_by_type(), test_resources)
    self.assertEqual(
        worker._get_total_records(GeoNodeResourceType.DATASET), test_resources[GeoNodeResourceType.DATASET]
    )
    self.assertEqual(
        worker._get_total_records(GeoNodeResourceType.DOCUMENT), test_resources[GeoNodeResourceType.DOCUMENT]
    )
    self.assertEqual(worker._get_total_records(GeoNodeResourceType.MAP), test_resources[GeoNodeResourceType.MAP])