'Testing GeometryField with a SRID set.'

def test01_srid(self):

    fld = forms.GeometryField(srid=4326)
    geom = fld.clean('POINT(5    23)')
    self.assertEqual(4326, geom.srid)
    fld = forms.GeometryField(srid=32140)
    tol = 1e-07
    xform_geom = GEOSGeometry('POINT    (951640.547328465    4219369.26171664)', srid=32140)
    cleaned_geom = fld.clean('SRID=4326;POINT    (-95.363151    29.763374)')
    self.failUnless(xform_geom.equals_exact(cleaned_geom, tol))
