[Zope-CVS] CVS: Packages/pypes/pypes/tests - test_identity.py:1.14
Casey Duncan
casey at zope.com
Wed Mar 10 16:16:47 EST 2004
Update of /cvs-repository/Packages/pypes/pypes/tests
In directory cvs.zope.org:/tmp/cvs-serv20069/tests
Modified Files:
test_identity.py
Log Message:
__eq__ and __ne__ now return False instead of raising TypeError when comparing IdentitySets to other objects
=== Packages/pypes/pypes/tests/test_identity.py 1.13 => 1.14 ===
--- Packages/pypes/pypes/tests/test_identity.py:1.13 Wed Mar 3 23:47:57 2004
+++ Packages/pypes/pypes/tests/test_identity.py Wed Mar 10 16:16:47 2004
@@ -617,6 +617,13 @@
self.failIf(set1 != set1)
self.failUnless(set1.issubset(set1))
self.failUnless(set1.issuperset(set1))
+
+ def testNotEqualToDifferentType(self):
+ from pypes.identity import IdentitySet
+ objs = [self._newObj() for i in xrange(10)]
+ self.failIf(IdentitySet(objs) == objs)
+ self.failUnless(IdentitySet(objs) != objs)
+
class TestMultiSetOps(PypesTestCase):
More information about the Zope-CVS
mailing list