Fix: python 3.2 tests
This commit is contained in:
2
tests.py
2
tests.py
@@ -433,7 +433,7 @@ class OptimizationTests(unittest.TestCase):
|
|||||||
def test_success_if_correct_expected_patch_appied(self):
|
def test_success_if_correct_expected_patch_appied(self):
|
||||||
src = [{"a": 1, "b": 2}]
|
src = [{"a": 1, "b": 2}]
|
||||||
dst = [{"b": 2, "c": 2}]
|
dst = [{"b": 2, "c": 2}]
|
||||||
exp = [{u'path': u'/0', u'value': {u'c': 2, u'b': 2}, u'op': u'replace'}]
|
exp = [{'path': '/0', 'value': {'c': 2, 'b': 2}, 'op': 'replace'}]
|
||||||
patch = jsonpatch.make_patch(src, dst)
|
patch = jsonpatch.make_patch(src, dst)
|
||||||
self.assertEqual(patch.patch, exp)
|
self.assertEqual(patch.patch, exp)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user