'Testing GeoJSON input/output.'

def test01e_json(self):

    for g in self.geometries.json_geoms:
        geom = OGRGeometry(g.wkt)
        if (not hasattr(g, 'not_equal')):
            self.assertEqual(json.loads(g.json), json.loads(geom.json))
            self.assertEqual(json.loads(g.json), json.loads(geom.geojson))
        self.assertEqual(OGRGeometry(g.wkt), OGRGeometry(geom.json))
