This module contains the core framework classes that form the basis of
specific test cases and suites (TestCase, TestSuite etc.), and also a
text-based utility class for running the tests and reporting the results
-(TextTestRunner).
+ (TextTestRunner).
Simple usage:
try:
self.setUp()
except:
- result.addError(self,self.__exc_info())
+ result.addError(self, self.__exc_info())
return
ok = 0
testMethod()
ok = 1
except self.failureException, e:
- result.addFailure(self,self.__exc_info())
+ result.addFailure(self, self.__exc_info())
except:
- result.addError(self,self.__exc_info())
+ result.addError(self, self.__exc_info())
try:
self.tearDown()
except:
- result.addError(self,self.__exc_info())
+ result.addError(self, self.__exc_info())
ok = 0
if ok: result.addSuccess(self)
finally: