[Zope-Checkins] CVS: Zope2 - testCatalog.py:1.3
chrism@serenade.digicool.com
chrism@serenade.digicool.com
Fri, 23 Mar 2001 18:34:14 -0500
Update of /cvs-repository/Zope2/lib/python/Products/ZCatalog/tests
In directory serenade.digicool.com:/home/chrism/sandboxes/TrunkBranch/lib/python/Products/ZCatalog/tests
Modified Files:
testCatalog.py
Log Message:
Merge from branch.
--- Updated File testCatalog.py in package Zope2 --
--- testCatalog.py 2001/03/15 13:16:24 1.2
+++ testCatalog.py 2001/03/23 23:34:14 1.3
@@ -7,7 +7,16 @@
Andreas Jung, andreas@digicool.com
$Log$
- Revision 1.2 2001/03/15 13:16:24 jim
+ Revision 1.3 2001/03/23 23:34:14 chrism
+ Merge from branch.
+
+ 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.
+
+ Revision 1.1.6.1 2001/03/15 13:10:32 jim
Merged changes from Catalog-BTrees-Integration branch.
Revision 1.1.4.11 2001/03/14 18:43:16 andreas
@@ -821,6 +830,18 @@
def checkUniqueValuesForContent(self):
a = self._catalog.uniqueValuesFor('att1')
assert a[0] == 'att1', 'bad content %s' % str(a[0])
+
+ 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`)
def uncatalog(self):
for x in range(0, self.upper):