summaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests.py')
-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))