'Testing the Error handlers.'

def test_errors(self):

    for err in self.geometries.errors:
        with self.assertRaises((GEOSException, ValueError)):
            _ = fromstr(err.wkt)
    self.assertRaises(GEOSException, GEOSGeometry, memoryview('0'))
    class NotAGeometry(object, ):
        pass
    self.assertRaises(TypeError, GEOSGeometry, NotAGeometry())
    self.assertRaises(TypeError, GEOSGeometry, None)
