def __init__(self, **kwargs): self.caption = kwargs.pop('caption') self._show_body = kwargs.pop('body') self._show_headers = kwargs.pop('headers') self._use_color = kwargs.pop('colorize') self._stream = kwargs.pop('stream') if self._use_color: self.colorize = utils.get_colorizer(self._stream) super(VerboseHttp, self).__init__(**kwargs)
def __init__(self, stream, descriptions, verbosity): super(ConciseTestResult, self).__init__(stream, descriptions, verbosity) self.colorize = utils.get_colorizer(stream)
def __init__(self, stream, descriptions, verbosity): super(ConciseTestResult, self).__init__( stream, descriptions, verbosity) self.colorize = utils.get_colorizer(stream)