'Testing EWKT input/output.'

def test_ewkt(self):

    for ewkt_val in ('POINT    (1    2    3)', 'LINEARRING    (0    0,1    1,2    1,0    0)'):
        self.assertEqual(ewkt_val, OGRGeometry(ewkt_val).ewkt)
        ewkt_val = ('SRID=4326;%s' % ewkt_val)
        geom = OGRGeometry(ewkt_val)
        self.assertEqual(ewkt_val, geom.ewkt)
        self.assertEqual(4326, geom.srs.srid)
