Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 def __init__(self, stream, descriptions, verbosity):
     super(ConciseTestResult, self).__init__(stream, descriptions,
                                             verbosity)
     self.colorize = utils.get_colorizer(stream)
Exemple #4
0
 def __init__(self, stream, descriptions, verbosity):
     super(ConciseTestResult, self).__init__(
         stream, descriptions, verbosity)
     self.colorize = utils.get_colorizer(stream)