diff options
author | Stefan Kögl <stefan@skoegl.net> | 2014-03-22 19:06:46 +0100 |
---|---|---|
committer | Stefan Kögl <stefan@skoegl.net> | 2014-03-22 19:06:46 +0100 |
commit | 81d7d5072ed4cea6eeb60ceb6f5073408c674a03 (patch) | |
tree | eb4597728a4f0accb9600635a4502e7faadd413f | |
parent | ef515dc850012384d7ab98dd35968657a34cc227 (diff) | |
download | python-json-patch-81d7d5072ed4cea6eeb60ceb6f5073408c674a03.tar.gz |
fix test for Python 3
-rwxr-xr-x | tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |