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

@unittest.skipUnless(gdal.HAS_GDAL, u'gdal    is    required')
def test_json(self):

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