diff options
author | Stefan Kögl <stefan@skoegl.net> | 2013-07-11 21:05:56 +0200 |
---|---|---|
committer | Stefan Kögl <stefan@skoegl.net> | 2013-07-11 21:05:56 +0200 |
commit | 5bf2ef97f7c599b54c9632c1e9c544f71153d9e3 (patch) | |
tree | 95c8440b9992970f97064373a7999bb3d3625992 /tests.py | |
parent | 51cb6b6acadbbfc45aa281f84400ff982677c8a3 (diff) | |
download | python-json-pointer-5bf2ef97f7c599b54c9632c1e9c544f71153d9e3.tar.gz |
add test for out-of-bounds error
Diffstat (limited to 'tests.py')
-rwxr-xr-x | tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -86,6 +86,10 @@ class WrongInputTests(unittest.TestCase): doc = [0, 1, 2] self.assertRaises(JsonPointerException, resolve_pointer, doc, '/a') + def test_oob(self): + # this list does not have 10 members + doc = [0, 1, 2] + self.assertRaises(JsonPointerException, resolve_pointer, doc, '/10') suite = unittest.TestSuite() |