aports/unmaintained/py3-hypothesis/check.py
Jean-Louis Fuchs dac2153555 unmaintained/py3-hypothesis: move from testing
They release about twice a week, we can't keep up with this.
2017-12-26 11:45:53 +00:00

7 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