[Zope3-checkins] CVS: Zope3/src/zope/app/http/tests - test_delete.py:1.7

Jim Fulton jim at zope.com
Sun Sep 21 13:32:18 EDT 2003


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

Modified Files:
	test_delete.py 
Log Message:
No longer use context wrappers or the zope container adapter.


=== Zope3/src/zope/app/http/tests/test_delete.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/http/tests/test_delete.py:1.6	Mon Jun 23 13:17:05 2003
+++ Zope3/src/zope/app/http/tests/test_delete.py	Sun Sep 21 13:32:17 2003
@@ -20,14 +20,13 @@
 import zope.app.http.delete
 from zope.publisher.browser import TestRequest
 from zope.app.interfaces.file import IWriteDirectory, IFileFactory
-from zope.app.interfaces.container import IZopeWriteContainer
 from zope.app.tests.placelesssetup import PlacelessSetup
-from zope.app.context import ContextWrapper
 from zope.interface import implements
+from zope.app.container.contained import contained
 
 class Container:
 
-    implements(IWriteDirectory, IZopeWriteContainer, IFileFactory)
+    implements(IWriteDirectory, IFileFactory)
 
     def __delitem__(self, name):
         delattr(self, name)
@@ -38,7 +37,7 @@
     def test(self):
         container = Container()
         container.a = 'spam'
-        item = ContextWrapper(Container(), container, name='a')
+        item = contained(Container(), container, name='a')
 
         request = TestRequest()
         delete = zope.app.http.delete.DELETE(item, request)




More information about the Zope3-Checkins mailing list