We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 078ed6f commit b531ce1Copy full SHA for b531ce1
tests.py
@@ -65,9 +65,19 @@ def test_eq_hash(self):
65
# a pointer compares not-equal to objects of other types
66
self.assertFalse(p1 == "/something/1/b")
67
68
+
69
+class WrongInputTests(unittest.TestCase):
70
71
+ def test_no_start_slash(self):
72
73
+ # an exception is raised when the pointer string does not start with /
74
+ self.assertRaises(JsonPointerException, JsonPointer, 'some/thing')
75
76
77
suite = unittest.TestSuite()
78
suite.addTest(unittest.makeSuite(SpecificationTests))
79
suite.addTest(unittest.makeSuite(ComparisonTests))
80
+suite.addTest(unittest.makeSuite(WrongInputTests))
81
82
modules = ['jsonpointer']
83
0 commit comments