diff options
author | Stefan Kögl <stefan@skoegl.net> | 2013-07-07 19:25:19 +0200 |
---|---|---|
committer | Stefan Kögl <stefan@skoegl.net> | 2013-07-07 19:25:19 +0200 |
commit | 078ed6f153e1189ac051ee3820c6381fee41d12a (patch) | |
tree | 284c577bad4c287abfc804333cf2c6e0cc04677d /tests.py | |
parent | 9a0c272c76ac29f2c20a5a9c52f489084428c314 (diff) | |
download | python-json-pointer-078ed6f153e1189ac051ee3820c6381fee41d12a.tar.gz |
add test for comparing a pointer to another object
Diffstat (limited to 'tests.py')
-rwxr-xr-x | tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -62,6 +62,9 @@ class ComparisonTests(unittest.TestCase): self.assertNotEqual(hash(p1), hash(p3)) self.assertNotEqual(hash(p2), hash(p3)) + # a pointer compares not-equal to objects of other types + self.assertFalse(p1 == "/something/1/b") + suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(SpecificationTests)) suite.addTest(unittest.makeSuite(ComparisonTests)) |