[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container/ftests - test_contents.py:1.4

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


Update of /cvs-repository/Zope3/src/zope/app/browser/container/ftests
In directory cvs.zope.org:/tmp/cvs-serv12089/src/zope/app/browser/container/ftests

Modified Files:
	test_contents.py 
Log Message:
Use __setitem__ rather than setObject to add items to containers.


=== Zope3/src/zope/app/browser/container/ftests/test_contents.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/container/ftests/test_contents.py:1.3	Sat Jun 21 17:21:59 2003
+++ Zope3/src/zope/app/browser/container/ftests/test_contents.py	Sun Sep 21 13:30:27 2003
@@ -53,7 +53,7 @@
 
     def test_inplace_rename_multiple(self):
         root = self.getRootFolder()
-        root.setObject('foo', File())
+        root['foo'] = File()
         self.assert_('foo' in root)
         get_transaction().commit()
 
@@ -101,7 +101,7 @@
 
     def test_inplace_rename_single(self):
         root = self.getRootFolder()
-        root.setObject('foo', File())
+        root['foo'] = File()
         self.assert_('foo' in root)
         get_transaction().commit()
         
@@ -129,7 +129,7 @@
 
     def test_inplace_change_title(self):
         root = self.getRootFolder()
-        root.setObject('foo', File())
+        root['foo'] = File()
         get_transaction().commit()
         self.assert_('foo' in root)
         dc = zapi.getAdapter(root['foo'], IZopeDublinCore)




More information about the Zope3-Checkins mailing list