diff --git a/ext_tests.py b/ext_tests.py index 0b6caa6..d7c7585 100755 --- a/ext_tests.py +++ b/ext_tests.py @@ -62,7 +62,11 @@ class TestCaseTemplate(unittest.TestCase): 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):