Beispiel #1
0
 def add_error(self, element, error):
     console = Console(text=True, width=120)
     console.obj(self.context, error)
     trace = console.get_text()
     self._test_result('error',
                       element=element,
                       error=error,
                       trace=trace,
                       description=self.case.description,
                       msg=safe_to_string(error))
Beispiel #2
0
 def add_error(self, element, error):
     console = Console(text=True, width=120)
     console.obj(self.context, error)
     trace = console.get_text()
     self._test_result('error',
                       element=element,
                       error=error,
                       trace=trace,
                       description=self.case.description,
                       msg=safe_to_string(error))