diff options
author | selurvedu <selurvedu@users.noreply.github.com> | 2015-08-19 17:00:16 +0000 |
---|---|---|
committer | selurvedu <selurvedu@users.noreply.github.com> | 2016-04-08 04:38:18 +0000 |
commit | c1067351a798534dda59aadccdfe5eb96fd520b4 (patch) | |
tree | 3d07c730ea96752609debeeacfac7a8400081afc /tests.py | |
parent | 282bebae977021b6f1d19fad0c967eb625af7331 (diff) | |
download | python-json-patch-c1067351a798534dda59aadccdfe5eb96fd520b4.tar.gz |
Allow longer patches in test_use_move_...
Diffstat (limited to 'tests.py')
-rwxr-xr-x | tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -329,8 +329,9 @@ class MakePatchTestCase(unittest.TestCase): def test_use_move_instead_of_add_remove(self): def fn(_src, _dst): patch = list(jsonpatch.make_patch(_src, _dst)) - self.assertEqual(len(patch), 1) - self.assertEqual(patch[0]['op'], 'move') + # Check if there are only 'move' operations + for p in patch: + self.assertEqual(p['op'], 'move') res = jsonpatch.apply_patch(_src, patch) self.assertEqual(res, _dst) |