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

chrism@serenade.digicool.com chrism@serenade.digicool.com
Fri, 23 Mar 2001 14:38:53 -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 checkUncatalogTwice test.


--- Updated File testCatalog.py in package Zope2 --
--- testCatalog.py	2001/03/15 13:10:32	1.1.6.1
+++ testCatalog.py	2001/03/23 19:38:52	1.1.6.2
@@ -7,6 +7,9 @@
     Andreas Jung, andreas@digicool.com
     
     $Log$
+    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.
 
@@ -821,6 +824,13 @@
     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 _second(self):
+        self._catalog.uncatalogObject(`0`)
 
     def uncatalog(self):
         for x in range(0, self.upper):