summaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
authorkafkaf- <thekafkaf@gmail.com>2014-11-14 16:18:39 +0200
committerkafkaf- <thekafkaf@gmail.com>2014-11-14 16:18:39 +0200
commit4c5cb493f2a8e41fd05b9b25df419701e215812a (patch)
tree83fe53df28d1b0d26d82906a00d129507c981d25 /tests.py
parent8a371c786fc77139be2a325c05e0a5c95ea83246 (diff)
downloadpython-json-pointer-4c5cb493f2a8e41fd05b9b25df419701e215812a.tar.gz
Using the same handling for the case in which the doc is a mapping or an object that support __getitem__(but not a sequence), Updated the tests
Diffstat (limited to 'tests.py')
-rwxr-xr-xtests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests.py b/tests.py
index 3bec626..246b507 100755
--- a/tests.py
+++ b/tests.py
@@ -277,7 +277,8 @@ class AltTypesTests(unittest.TestCase):
def test_mock_dict_raises_key_error(self):
doc = self.mdict
- self.assertRaises(KeyError, resolve_pointer, doc, '/foo')
+ self.assertRaises(JsonPointerException, resolve_pointer, doc, '/foo')
+ self.assertRaises(JsonPointerException, resolve_pointer, doc, '/root/1/2/3/4')