summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kögl <stefan@skoegl.net>2013-07-07 19:25:19 +0200
committerStefan Kögl <stefan@skoegl.net>2013-07-07 19:25:19 +0200
commit078ed6f153e1189ac051ee3820c6381fee41d12a (patch)
tree284c577bad4c287abfc804333cf2c6e0cc04677d
parent9a0c272c76ac29f2c20a5a9c52f489084428c314 (diff)
downloadpython-json-pointer-078ed6f153e1189ac051ee3820c6381fee41d12a.tar.gz
add test for comparing a pointer to another object
-rwxr-xr-xtests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests.py b/tests.py
index 762313d..8f86439 100755
--- a/tests.py
+++ b/tests.py
@@ -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))