def testFailThisIfExec(self): test = TestExec() try: test.failThisIf(True, "Fail this test") except TestFailThisError: pass except: self.failIf(True) else: self.failIf(True)
def testPassFailThisIfExec(self): test = TestExec() try: test.failThisIf(False, "Fail this test") except: self.failIf(True)