diff options
author | Stefan Kögl <stefan@skoegl.net> | 2012-12-21 10:19:46 +0100 |
---|---|---|
committer | Stefan Kögl <stefan@skoegl.net> | 2012-12-21 10:19:46 +0100 |
commit | ab691f2cce402b89f05e179ddc721fda4b0f086c (patch) | |
tree | d9e642ee9490091454735d3785daeecefad97e02 | |
parent | 682fc47b0e0d847156c36b0ae96b1bc15b65eed2 (diff) | |
download | python-json-patch-ab691f2cce402b89f05e179ddc721fda4b0f086c.tar.gz |
ext tests w/o result check if no exceptions raised
-rwxr-xr-x | ext_tests.py | 6 |
1 files changed, 5 insertions, 1 deletions
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): |