diff options
author | Stefan Kögl <stefan@skoegl.net> | 2015-05-07 18:08:37 +0200 |
---|---|---|
committer | Stefan Kögl <stefan@skoegl.net> | 2015-05-07 18:08:37 +0200 |
commit | 5d1980dec71a51f61dd1629b283af1f6b2b7c47b (patch) | |
tree | c13a03e9566b017613f1fab8a2787ec6eaa39baf | |
parent | 50a5e0d7e36bc9aaa8f863ca28fc59f147de7949 (diff) | |
download | python-json-patch-5d1980dec71a51f61dd1629b283af1f6b2b7c47b.tar.gz |
Fix make_patch with unicode paths
-rw-r--r-- | requirements.txt | 2 | ||||
-rwxr-xr-x | tests.py | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/requirements.txt b/requirements.txt index 7b26233..cd4b892 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -jsonpointer>=1.5 +jsonpointer>=1.9 @@ -351,6 +351,14 @@ class MakePatchTestCase(unittest.TestCase): res = patch.apply(src) self.assertEqual(res, dst) + def test_make_patch_unicode(self): + """ Test if unicode keys and values are handled correctly """ + src = {} + dst = {u'\xee': u'\xee'} + patch = jsonpatch.make_patch(src, dst) + res = patch.apply(src) + self.assertEqual(res, dst) + class InvalidInputTests(unittest.TestCase): |