'Equivalence testing, a Geometry may be compared with another Geometry
or a WKT representation.'

def __eq__(self, other):

    if isinstance(other, basestring):
        return (self.wkt == other)
    elif isinstance(other, GEOSGeometry):
        return self.equals_exact(other)
    else:
        return False
