- self.assertEqual(type_expected, type_got,
- 'Type doesn\'t match at element %d of the list in field %s, expect %s, got %s' % (
- index, field, type_expected, type_got))
+ self.assertEqual(
+ type_expected, type_got,
+ 'Type mismatch for list item at index %d for field %s, expected %r, got %r' % (
+ index, field, type_expected, type_got))