Пример #1
0
    def checkSettings(self, test):
        self.stc.SetText(test[0])
        applyKateVariables(self.stc, [test[0]])
        for fcn, val in test[1]:
            eq_((fcn, getattr(self.stc, fcn)()), (fcn, val))

        # Compare the serializer by setting a new stc to the serialized vars
        # and verifying against the same tests
        text = serializeKateVariables(self.stc)
        print(text)
        newstc = getPlainSTC()
        applyKateVariables(newstc, [text])
        for fcn, val in test[1]:
            eq_((fcn, getattr(newstc, fcn)()), (fcn, val))
Пример #2
0
 def checkSettings(self, test):
     self.stc.SetText(test[0])
     applyKateVariables(self.stc, [test[0]])
     for fcn, val in test[1]:
         eq_((fcn, getattr(self.stc, fcn)()), (fcn, val))
     
     # Compare the serializer by setting a new stc to the serialized vars
     # and verifying against the same tests
     text = serializeKateVariables(self.stc)
     print(text)
     newstc = getPlainSTC()
     applyKateVariables(newstc, [text])
     for fcn, val in test[1]:
         eq_((fcn, getattr(newstc, fcn)()), (fcn, val))
Пример #3
0
 def setUp(self):
   self.stc = getPlainSTC()