Exemplo n.º 1
0
 def testAbortIfExec(self):
     test = TestExec()
     try:
         test.abortIf(True, "Abort test")
     except TestAbortError:
         pass
     except:
         self.failIf(True)
     else:
         self.failIf(True)
Exemplo n.º 2
0
 def testAbortIfExec(self):
     test = TestExec()
     try:
         test.abortIf(True, "Abort test")
     except TestAbortError:
         pass
     except:
         self.failIf(True)
     else:
         self.failIf(True)
Exemplo n.º 3
0
 def testPassAbortIfExec(self):
     test = TestExec()
     try:
         test.abortIf(False, "Abort test")
     except:
         self.failIf(True)
Exemplo n.º 4
0
 def testPassAbortIfExec(self):
     test = TestExec()
     try:
         test.abortIf(False, "Abort test")
     except:
         self.failIf(True)