#NEWLINE# @ skipUnless ( HAS_GDAL , 'GDAL is required.' ) #NEWLINE# def test_json( self ) : #NEWLINE# #INDENT# 'Testing GeoJSON input/output (via GDAL).' #NEWLINE# for g in self . geometries . json_geoms : #NEWLINE# #INDENT# geom = GEOSGeometry ( g . wkt ) #NEWLINE# if ( not hasattr ( self , 'not_equal' ) ) : #NEWLINE# #INDENT# self . assertEqual ( json . loads ( g . json ) , json . loads ( geom . json ) ) #NEWLINE# self . assertEqual ( json . loads ( g . json ) , json . loads ( geom . geojson ) ) #NEWLINE# #UNINDENT# self . assertEqual ( GEOSGeometry ( g . wkt ) , GEOSGeometry ( geom . json ) )