summaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
authorStefan Kögl <stefan@skoegl.net>2014-07-03 22:36:25 +0200
committerStefan Kögl <stefan@skoegl.net>2014-07-03 22:44:03 +0200
commit98e272e7177fbcf0bc401bb03279a05492a51d7c (patch)
tree0b1ab8a3ade7c51ce5491ecec28e01cebc8830df /tests.py
parent3f2f609e42d424e7b88e739b25e11110b9ea4418 (diff)
downloadpython-json-patch-98e272e7177fbcf0bc401bb03279a05492a51d7c.tar.gz
raise JsonPatchException on missing patch attributes
Diffstat (limited to 'tests.py')
-rwxr-xr-xtests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests.py b/tests.py
index 8dff801..5b0d9e9 100755
--- a/tests.py
+++ b/tests.py
@@ -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):