diff --git a/test/test_document/__init__.py b/test/test_document/__init__.py index 4bc9b88..9c64c0c 100644 --- a/test/test_document/__init__.py +++ b/test/test_document/__init__.py @@ -125,3 +125,11 @@ def test_loads_01(self): self.assertEqual(json_parsed['foo'], 'bar') + + def test_jsonpointer_01(self): + parser = cysimdjson.JSONParser() + with open(os.path.join(THIS_DIR, 'document.json'), 'rb') as fo: + json_parsed = parser.parse(fo.read()) + + with self.assertRaises(ValueError): + json_parsed.at_pointer("/document/key4/sub")