1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/testing/py3-hypothesis/check.py
2017-11-02 13:09:34 +00:00

6 lines
169 B
Python

from hypothesis import given
from hypothesis.strategies import text
@given(s=text())
def test_decode_inverts_encode(s):
assert s.encode("UTF").decode("UTF-8") == s