[Zope3-checkins] CVS: Zope3/src/zope/app/http/tests -
test_delete.py:1.6.22.2 test_put.py:1.5.22.3
Jim Fulton
jim at zope.com
Fri Sep 12 15:15:58 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/http/tests
In directory cvs.zope.org:/tmp/cvs-serv13470/src/zope/app/http/tests
Modified Files:
Tag: parentgeddon-branch
test_delete.py test_put.py
Log Message:
Can't have the tests passing, can we?
=== Zope3/src/zope/app/http/tests/test_delete.py 1.6.22.1 => 1.6.22.2 ===
--- Zope3/src/zope/app/http/tests/test_delete.py:1.6.22.1 Mon Sep 8 14:21:39 2003
+++ Zope3/src/zope/app/http/tests/test_delete.py Fri Sep 12 15:15:28 2003
@@ -20,16 +20,15 @@
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 IAddTarget, IRemoveSource
from zope.app.tests.placelesssetup import PlacelessSetup
from zope.interface import implements
from zope.app.container.contained import contained
class Container:
- implements(IWriteDirectory, IRemoveSource, IFileFactory)
+ implements(IWriteDirectory, IFileFactory)
- def removeObject(self, name):
+ def __delitem__(self, name):
delattr(self, name)
=== Zope3/src/zope/app/http/tests/test_put.py 1.5.22.2 => 1.5.22.3 ===
--- Zope3/src/zope/app/http/tests/test_put.py:1.5.22.2 Tue Sep 9 11:47:04 2003
+++ Zope3/src/zope/app/http/tests/test_put.py Fri Sep 12 15:15:28 2003
@@ -21,7 +21,6 @@
import zope.app.http.put
from zope.publisher.browser import TestRequest
from zope.app.interfaces.file import IWriteFile, IWriteDirectory, IFileFactory
-from zope.app.interfaces.container import IRemoveSource, IAddTarget
from zope.app.tests.placelesssetup import PlacelessSetup
from zope.interface import implements
@@ -39,12 +38,10 @@
class Container:
- implements(IWriteDirectory, IRemoveSource, IAddTarget, IFileFactory)
+ implements(IWriteDirectory, IFileFactory)
- def setObject(self, name, object):
+ def __setitem__(self, name, object):
setattr(self, name, object)
-
- addObject = setObject
def __call__(self, name, content_type, data):
return File(name, content_type, data)
More information about the Zope3-Checkins
mailing list