[Zope-Checkins] CVS: Zope2 - testCatalog.py:1.1.6.3
chrism@serenade.digicool.com
chrism@serenade.digicool.com
Fri, 23 Mar 2001 18:32:06 -0500
Update of /cvs-repository/Zope2/lib/python/Products/ZCatalog/tests
In directory serenade.digicool.com:/home/chrism/sandboxes/2_3Branch/lib/python/Products/ZCatalog/tests
Modified Files:
Tag: zope-2_3-branch
testCatalog.py
Log Message:
Added catalog length test.
--- Updated File testCatalog.py in package Zope2 --
--- testCatalog.py 2001/03/23 19:38:52 1.1.6.2
+++ testCatalog.py 2001/03/23 23:32:02 1.1.6.3
@@ -7,6 +7,9 @@
Andreas Jung, andreas@digicool.com
$Log$
+ Revision 1.1.6.3 2001/03/23 23:32:02 chrism
+ Added catalog length test.
+
Revision 1.1.6.2 2001/03/23 19:38:52 chrism
added checkUncatalogTwice test.
@@ -828,6 +831,11 @@
def checkUncatalogTwice(self):
self._catalog.uncatalogObject(`0`)
self.assertRaises(Exception, '_second')
+
+ def checkCatalogLength(self):
+ for x in range(0, self.upper):
+ self._catalog.uncatalogObject(`x`)
+ assert len(self._catalog) == 0
def _second(self):
self._catalog.uncatalogObject(`0`)