def eq(self, other): if not isinstance(other, DisconnectedRef): return False result = (isSameEver(self.handler, other.handler) and isSameEver( self.resolutionIdentity, other.resolutionIdentity)) if (result and not isSameEver(self._problem, other._problem)): raise userError(u"Ref invariant violation: disconnected refs with " u" same identity but different problems") return result
def eq(self, other): if not isinstance(other, DisconnectedRef): return False result = (isSameEver(self.handler, other.handler) and isSameEver(self.resolutionIdentity, other.resolutionIdentity)) if (result and not isSameEver(self._problem, other._problem)): raise userError(u"Ref invariant violation: disconnected refs with " u" same identity but different problems") return result
def compareGuardMaps(this, that): from typhon.objects.equality import isSameEver for i, x in enumerate(this): if not isSameEver(x[1], that[i][1]): return False return True
def compareAuditorLists(this, that): from typhon.objects.equality import isSameEver for i, x in enumerate(this): if not isSameEver(x, that[i]): return False return True
def keyEq(first, second): from typhon.objects.equality import isSameEver first = resolveKey(first) second = resolveKey(second) return isSameEver(first, second)