'Testing GeoJSON input/output (via GDAL).'

def test01i_json(self):

    if ((not gdal) or (not gdal.GEOJSON)):
        return
    for g in self.geometries.json_geoms:
        geom = GEOSGeometry(g.wkt)
        if (not hasattr(g, 'not_equal')):
            self.assertEqual(g.json, geom.json)
            self.assertEqual(g.json, geom.geojson)
        self.assertEqual(GEOSGeometry(g.wkt), GEOSGeometry(geom.json))
