diff options
author | Stefan Kögl <stefan@skoegl.net> | 2014-07-03 22:36:25 +0200 |
---|---|---|
committer | Stefan Kögl <stefan@skoegl.net> | 2014-07-03 22:44:03 +0200 |
commit | 98e272e7177fbcf0bc401bb03279a05492a51d7c (patch) | |
tree | 0b1ab8a3ade7c51ce5491ecec28e01cebc8830df /tests.py | |
parent | 3f2f609e42d424e7b88e739b25e11110b9ea4418 (diff) | |
download | python-json-patch-98e272e7177fbcf0bc401bb03279a05492a51d7c.tar.gz |
raise JsonPatchException on missing patch attributes
Diffstat (limited to 'tests.py')
-rwxr-xr-x | tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -158,7 +158,9 @@ class ApplyPatchTestCase(unittest.TestCase): def test_test_noval_existing(self): obj = {'bar': 'qux'} - jsonpatch.apply_patch(obj, [{'op': 'test', 'path': '/bar'}]) + self.assertRaises(jsonpatch.InvalidJsonPatch, + jsonpatch.apply_patch, + obj, [{'op': 'test', 'path': '/bar'}]) def test_test_noval_not_existing(self): |