Esempio n. 1
0
 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
Esempio n. 2
0
 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
Esempio n. 3
0
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
Esempio n. 4
0
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
Esempio n. 5
0
def keyEq(first, second):
    from typhon.objects.equality import isSameEver
    first = resolveKey(first)
    second = resolveKey(second)
    return isSameEver(first, second)
Esempio n. 6
0
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
Esempio n. 7
0
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
Esempio n. 8
0
def keyEq(first, second):
    from typhon.objects.equality import isSameEver
    first = resolveKey(first)
    second = resolveKey(second)
    return isSameEver(first, second)