Permalink
Browse files

ext tests w/o result check if no exceptions raised

  • Loading branch information...
1 parent 682fc47 commit ab691f2cce402b89f05e179ddc721fda4b0f086c @stefankoegl committed Dec 21, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 ext_tests.py
View
@@ -62,7 +62,11 @@ def _test(self, test):
else:
res = jsonpatch.apply_patch(test['doc'], test['patch'])
- self.assertEquals(res, test['expected'])
+
+ # if there is no 'expected' we only verify that applying the patch
+ # does not raies an exception
+ if 'expected' in test:
+ self.assertEquals(res, test['expected'])
def make_test_case(tests):

0 comments on commit ab691f2

Please sign in to comment.