[Zope-CVS] CVS: Packages/pypes/pypes/tests - test_identity.py:1.13
Casey Duncan
casey at zope.com
Wed Mar 3 23:47:58 EST 2004
Update of /cvs-repository/Packages/pypes/pypes/tests
In directory cvs.zope.org:/tmp/cvs-serv16088/tests
Modified Files:
test_identity.py
Log Message:
Use BTree.Length to optimize IdentitySet __len__
=== Packages/pypes/pypes/tests/test_identity.py 1.12 => 1.13 ===
--- Packages/pypes/pypes/tests/test_identity.py:1.12 Wed Mar 3 23:29:46 2004
+++ Packages/pypes/pypes/tests/test_identity.py Wed Mar 3 23:47:57 2004
@@ -431,10 +431,12 @@
def testUpdate(self):
objs = [self._newObj() for i in xrange(100)]
self.set.update(objs)
+ self.assertEqual(len(self.set), 100)
for o in objs:
self.failUnless(o in self.set)
objs2 = [self._newObj() for i in xrange(100)]
self.set.update(objs2)
+ self.assertEqual(len(self.set), 200)
for o in objs + objs2:
self.failUnless(o in self.set)
More information about the Zope-CVS
mailing list