summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Seligmann <mithrandi@mithrandi.net>2017-07-06 16:18:29 +0200
committerTristan Seligmann <mithrandi@mithrandi.net>2017-07-06 16:18:29 +0200
commit6cc61b1f646edac4ed90929b18143da1515e813d (patch)
tree9963571f6ef0e43749ff979b537b352545ae7c49
parent49b6c74b662471b6849442becf5a165348376420 (diff)
downloadpython-json-patch-6cc61b1f646edac4ed90929b18143da1515e813d.tar.gz
Add explicit example.
-rwxr-xr-xtests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests.py b/tests.py
index 08bea16..0ba2488 100755
--- a/tests.py
+++ b/tests.py
@@ -536,6 +536,8 @@ if hypothesis is not None:
| st.dictionaries(st.text(string.printable), children))
class RoundtripTests(unittest.TestCase):
+ @hypothesis.example({}, {u'%20': None})
+ @hypothesis.example({u'%20': None}, {})
@hypothesis.given(json_st, json_st)
def test_roundtrip(self, src, dst):
patch = jsonpatch.JsonPatch.from_diff(src, dst, False)