utest: better error reporting
@@ -46,12 +46,12 @@ class TestStringsAndBytes(unittest.TestCase):
def test_strings(self):
for thing in ['string', u'unicode', '', u'']:
assert_equal(is_string(thing), True, thing)
- assert_equal(is_bytes(thing), isinstance(thing, bytes))
+ assert_equal(is_bytes(thing), isinstance(thing, bytes), thing)
def test_bytes(self):
for thing in [b'bytes', bytearray(b'ba'), b'', bytearray()]:
assert_equal(is_bytes(thing), True, thing)
- assert_equal(is_string(thing), isinstance(thing, str))
+ assert_equal(is_string(thing), isinstance(thing, str), thing)
class TestListLike(unittest.TestCase):
