summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kögl <stefan@skoegl.net>2014-03-22 19:06:46 +0100
committerStefan Kögl <stefan@skoegl.net>2014-03-22 19:06:46 +0100
commit81d7d5072ed4cea6eeb60ceb6f5073408c674a03 (patch)
treeeb4597728a4f0accb9600635a4502e7faadd413f
parentef515dc850012384d7ab98dd35968657a34cc227 (diff)
downloadpython-json-patch-81d7d5072ed4cea6eeb60ceb6f5073408c674a03.tar.gz
fix test for Python 3
-rwxr-xr-xtests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests.py b/tests.py
index ac42a5d..88012de 100755
--- a/tests.py
+++ b/tests.py
@@ -337,7 +337,7 @@ class MakePatchTestCase(unittest.TestCase):
src = {"x/y": 1}
dst = {"x/y": 2}
patch = jsonpatch.make_patch(src, dst)
- self.assertEqual("""[{"path": "/x~1y", "value": 2, "op": "replace"}]""", str(patch))
+ self.assertEqual([{"path": "/x~1y", "value": 2, "op": "replace"}], patch.patch)
res = patch.apply(src)
self.assertEqual(res, dst)