'Testing the Error handlers.'

def test01d_errors(self):

    print '\nBEGIN    -    expecting    GEOS_ERROR;    safe    to    ignore.\n'
    for err in self.geometries.errors:
        try:
            g = fromstr(err.wkt)
        except (GEOSException, ValueError):
            pass
    self.assertRaises(GEOSException, GEOSGeometry, buffer('0'))
    print '\nEND    -    expecting    GEOS_ERROR;    safe    to    ignore.\n'
    class NotAGeometry(object, ):
        pass
    self.assertRaises(TypeError, GEOSGeometry, NotAGeometry())
    self.assertRaises(TypeError, GEOSGeometry, None)
