[Zope3-checkins] CVS: Zope3/src/zope/app/utilities/tests - test_content.py:1.4

Jim Fulton jim at zope.com
Sun Sep 21 13:30:47 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/utilities/tests
In directory cvs.zope.org:/tmp/cvs-serv12246/src/zope/app/utilities/tests

Modified Files:
	test_content.py 
Log Message:
Changed to use __setitem__ rather than setObject


=== Zope3/src/zope/app/utilities/tests/test_content.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/utilities/tests/test_content.py:1.3	Mon Aug 18 14:55:40 2003
+++ Zope3/src/zope/app/utilities/tests/test_content.py	Sun Sep 21 13:30:46 2003
@@ -77,13 +77,13 @@
         classImplements(ContentComponentDefinition, ILocalUtility)
         classImplements(ContentComponentDefinition, IAttributeAnnotatable)
         default = zapi.traverse(mgr, 'default')
-        default.setObject('TestDoc', ContentComponentDefinition())
+        default['TestDoc'] = ContentComponentDefinition()
 
         # Setup Definition Registration
         path = "%s/default/%s" % (zapi.getPath(mgr), 'TestDoc')
         reg = ContentComponentDefinitionRegistration(
             'TestDoc', IContentComponentDefinition, path)
-        key = default.getRegistrationManager().setObject("", reg)
+        key = default.getRegistrationManager().addRegistration(reg)
         self.reg = zapi.traverse(default.getRegistrationManager(), key)
         
     def tearDown(self):
@@ -128,7 +128,7 @@
         setup.addService(self.mgr, Utilities, LocalUtilityService())
         ccd = ContentComponentDefinition('TestDoc', IDocument)
         self.default = zapi.traverse(self.mgr, 'default')
-        self.default.setObject('Document', ccd)
+        self.default['Document'] = ccd
         ccd = zapi.traverse(self.default, 'Document')
         
         self.mi = ContentComponentDefinitionMenuItem(ccd)




More information about the Zope3-Checkins mailing list