[CMF-checkins] CVS: Products/CMFCore/tests - test_OpaqueItems.py:1.5

Grégoire Weber zope.org at incept.ch
Wed Jun 30 11:27:25 EDT 2004


Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv23361/tests

Modified Files:
	test_OpaqueItems.py 
Log Message:
Added 'getId' and '__call__' methods to the IOpaqueItemsWithHooks interface und updated unit tests accordingly.


=== Products/CMFCore/tests/test_OpaqueItems.py 1.4 => 1.5 ===
--- Products/CMFCore/tests/test_OpaqueItems.py:1.4	Mon Apr 26 08:14:17 2004
+++ Products/CMFCore/tests/test_OpaqueItems.py	Wed Jun 30 11:27:25 2004
@@ -58,12 +58,18 @@
 
 
 class OpaqueBase:
-    """ Opaque item without manage_after/before hookes
+    """ Dummy opaque item without manage_after/before hookes
     """
     def __init__(self, id):
         self.id = id
         self.addCount = self.cloneCount = self.deleteCount = 0
         self.addCounter = self.cloneCounter = self.deleteCounter = 1
+        
+    def __call__():
+        return
+        
+    def getId(self):
+        return self.id
 
 class MarkerOnly(OpaqueBase):
     """ Opaque item without manage_after/before hookes but marked



More information about the CMF-checkins mailing list