aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/py3-hypothesis/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/py3-hypothesis/check.py')
-rw-r--r--unmaintained/py3-hypothesis/check.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/unmaintained/py3-hypothesis/check.py b/unmaintained/py3-hypothesis/check.py
new file mode 100644
index 0000000000..1250548c7d
--- /dev/null
+++ b/unmaintained/py3-hypothesis/check.py
@@ -0,0 +1,6 @@
+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