[Zope-Checkins] CVS: Zope2 - testCatalog.py:1.1.6.4

chrism@serenade.digicool.com chrism@serenade.digicool.com
Thu, 5 Apr 2001 12:18:06 -0400


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 test for empty mapping returns all.


--- Updated File testCatalog.py in package Zope2 --
--- testCatalog.py	2001/03/23 23:32:02	1.1.6.3
+++ testCatalog.py	2001/04/05 16:18:05	1.1.6.4
@@ -7,6 +7,15 @@
     Andreas Jung, andreas@digicool.com
     
     $Log$
+    Revision 1.1.6.4  2001/04/05 16:18:05  chrism
+    Added test for empty mapping returns all.
+
+    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.
+
     Revision 1.1.6.3  2001/03/23 23:32:02  chrism
     Added catalog length test.
 
@@ -785,6 +794,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,
@@ -843,7 +857,6 @@
     def uncatalog(self):
         for x in range(0, self.upper):
             self._catalog.uncatalogObject(`x`)
-
 
 class objRS(ExtensionClass.Base):