From ab691f2cce402b89f05e179ddc721fda4b0f086c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Fri, 21 Dec 2012 10:19:46 +0100 Subject: ext tests w/o result check if no exceptions raised --- ext_tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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): -- cgit v1.2.1