[Zope-Checkins] CVS: Zope2 - testCatalog.py:1.4
chrism@serenade.digicool.com
chrism@serenade.digicool.com
Thu, 5 Apr 2001 12:15:38 -0400
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:
added test for empty mapping returns all.
--- Updated File testCatalog.py in package Zope2 --
--- testCatalog.py 2001/03/23 23:34:14 1.3
+++ testCatalog.py 2001/04/05 16:15:36 1.4
@@ -7,6 +7,9 @@
Andreas Jung, andreas@digicool.com
$Log$
+ Revision 1.4 2001/04/05 16:15:36 chrism
+ added test for empty mapping returns all.
+
Revision 1.3 2001/03/23 23:34:14 chrism
Merge from branch.
@@ -788,6 +791,11 @@
a = self._catalog()
assert len(a) == upper, 'length should be %s, its %s'%(upper, len(a))
+ def checkEmptyMappingReturnsAll(self):
+ upper = self.upper
+ a = self._catalog({})
+ assert len(a) == upper, 'length should be %s, its %s'%(upper, len(a))
+
def checkFieldIndexLength(self):
a = self._catalog(att1='att1')
assert len(a) == self.upper, 'should be %s, but is %s' % (self.upper,
@@ -846,7 +854,6 @@
def uncatalog(self):
for x in range(0, self.upper):
self._catalog.uncatalogObject(`x`)
-
class objRS(ExtensionClass.Base):