def test_geocode_geometry_geojson(self):
        result_geocode = self._make_request(
            self.geocoder.geocode,
            self.known_state_en,
            geometry='geojson',

        )
        self.assertEqual(
            result_geocode.raw['geojson'].get('type'),
            'MultiPolygon'
        )
Nominatim.geocode with full geometry (response in geojson format)
dataset/ETHPy150Open geopy/geopy/test/geocoders/nominatim.py/NominatimTestCase.test_geocode_geometry_geojson