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