def __init__(self, library, trace, state): self.library = library self.trace = trace self.state = state self.stateModifiers = [] self.verdict = True self.comments = [] self.constants = Collections.DictProxy(self.library.constants) self.constantNames = Collections.inverseDict(self.library.constants)
def testInverseDict(self): d1 = {"hip": "hei"} d2 = Collections.inverseDict(d1) assert d2["hei"] == "hip"