511
511
def test_always_str(self):
512
512
e = PassThroughError(u'\xb5', 'bar')
513
513
self.assertIsInstance(e.__str__(), str)
515
515
# not a Unicode string. The following line would raise a
516
516
# Unicode error, because it tries to call str() on the string
517
517
# returned from e.__str__(), and it has non ascii characters
521
524
def test_missing_format_string(self):
522
525
e = ErrorWithNoFormat(param='randomvalue')