Python unittest 模块,_TextTestResult() 实例源码
我们从Python开源项目中,提取了以下9个代码示例,用于说明如何使用unittest._TextTestResult()。
def __init__(self, stream, descriptions, verbosity):
unittest._TextTestResult.__init__(self, stream, descriptions, verbosity)
self._fails = set()
def _makeResult(self):
return _TextTestResult(self.stream, self.descriptions, self.verbosity)
def __init__(self, stream, descriptions, verbosity):
unittest._TextTestResult.__init__(self, stream, descriptions, verbosity)
self._fails = set()
def _makeResult(self):
return _TextTestResult(self.stream, self.descriptions, self.verbosity)
def __init__(self, stream, descriptions, verbosity):
unittest._TextTestResult.__init__(self, stream, descriptions, verbosity)
self._fails = set()
def _makeResult(self):
return _TextTestResult(self.stream, self.descriptions, self.verbosity)
def __init__(self,
stream = sys.stderr,
descriptions = 1,
verbosity = 1):
"""
Constructor method.
stream: Stream on which to write the report, e.g. sys.stderr
(stream object).
descriptions: ?
verbosity: ?
"""
unittest._TextTestResult.__init__(self,stream, descriptions, verbosity)
def __init__(self, stream, descriptions, verbosity):
unittest._TextTestResult.__init__(self, stream, descriptions, verbosity)
self._fails = set()