接上文,
for index, test in enumerate(self)第三次,test就是testcase:
testmul (__main__.MyTest)
testsum (__main__.MyTest)
TestCase.py中的class TestCase(object)的__call__()
def __call__(self, *args, **kwds):
return self.run(*args, **kwds)
TestCase.py中的class TestCase(object)的def run(self, result=None)
def run(self, result=None):
......
result.startTest(self)
testMethod = getattr(self, self._testMethodName)
if (getattr(self.__class__, "__unittest