Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 def testInverseDict(self):
   d1 = {"hip": "hei"}
   d2 = Collections.inverseDict(d1)
   assert d2["hei"] == "hip"
Пример #4
0
 def testInverseDict(self):
     d1 = {"hip": "hei"}
     d2 = Collections.inverseDict(d1)
     assert d2["hei"] == "hip"