Another assertion.

This commit is contained in:
Itamar Turner-Trauring 2020-07-16 14:40:30 -04:00
parent 2f693c47f9
commit 8d143af43e

View File

@ -38,6 +38,8 @@ class Base62(unittest.TestCase):
self.assertIsInstance(encoded, bytes)
self.assertIsInstance(bs, bytes)
self.assertIsInstance(decoded, bytes)
# Encoded string only uses values from the base62 allowed characters:
self.assertFalse(set(encoded) - set(base62.chars))
@given(input_bytes=st.binary(max_size=100))
def test_roundtrip(self, input_bytes):