def test_add_indexes(self): poi = PointOfInterest() poi.slug = 'osm:N12345' poi.names = [LocalisedName(name='Test', lang='en')] poi.descriptions = [LocalisedName(name='Descriptions', lang='en')] poi.geography = Point(-1.6, 54.0) poi.identifiers = [Identifier(namespace='foo', value='bar')] self._pois.add_or_update(poi)