[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/tests - test_field_widget.py:1.15

Jim Fulton jim at zope.com
Sun Sep 21 13:31:11 EDT 2003


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

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


=== Zope3/src/zope/app/browser/services/tests/test_field_widget.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/browser/services/tests/test_field_widget.py:1.14	Wed Aug 13 17:28:23 2003
+++ Zope3/src/zope/app/browser/services/tests/test_field_widget.py	Sun Sep 21 13:30:40 2003
@@ -59,12 +59,12 @@
     def setUp(self):
         PlacefulSetup.setUp(self, site=True)
         default = traverse(self.rootFolder, '++etc++site/default')
-        default.setObject('c1', C())
-        default.setObject('c2', C())
-        default.setObject('c3', C())
-        default.setObject('d1', D())
-        default.setObject('d2', D())
-        default.setObject('d3', D())
+        default['c1'] = C()
+        default['c2'] = C()
+        default['c3'] = C()
+        default['d1'] = D()
+        default['d2'] = D()
+        default['d3'] = D()
 
         self.request = TestRequest()
         self.defaultpackage = default




More information about the Zope3-Checkins mailing list