'Testing `transform` method (GDAL not available)'

def test23_transform_nogdal(self):

    old_has_gdal = gdal.HAS_GDAL
    try:
        gdal.HAS_GDAL = False
        g = GEOSGeometry('POINT    (-104.609    38.255)', 4326)
        self.assertRaises(GEOSException, g.transform, 2774)
        g = GEOSGeometry('POINT    (-104.609    38.255)', 4326)
        self.assertRaises(GEOSException, g.transform, 2774, clone=True)
    finally:
        gdal.HAS_GDAL = old_has_gdal
