Esempio n. 1
0
 def testFailThisIfExec(self):
     test = TestExec()
     try:
         test.failThisIf(True, "Fail this test")
     except TestFailThisError:
         pass
     except:
         self.failIf(True)
     else:
         self.failIf(True)
Esempio n. 2
0
 def testFailThisIfExec(self):
     test = TestExec()
     try:
         test.failThisIf(True, "Fail this test")
     except TestFailThisError:
         pass
     except:
         self.failIf(True)
     else:
         self.failIf(True)
Esempio n. 3
0
 def testPassFailThisIfExec(self):
     test = TestExec()
     try:
         test.failThisIf(False, "Fail this test")
     except:
         self.failIf(True)
Esempio n. 4
0
 def testPassFailThisIfExec(self):
     test = TestExec()
     try:
         test.failThisIf(False, "Fail this test")
     except:
         self.failIf(True)