def testFailThisExec(self): test = TestExec() try: test.failThis(False, "Fail this test") except TestFailThisError: pass except: self.failIf(True) else: self.failIf(True)
def testPassFailThisExec(self): test = TestExec() try: test.failThis(True, "Fail this test") except: self.failIf(True)