[Zope3-checkins] CVS: Zope3/src/zope/app/traversing/ftests -
test_vhosting.py:1.8.2.2
Jim Fulton
jim at zope.com
Tue Sep 9 18:45:10 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/traversing/ftests
In directory cvs.zope.org:/tmp/cvs-serv12108/src/zope/app/traversing/ftests
Modified Files:
Tag: parentgeddon-branch
test_vhosting.py
Log Message:
got more tests to pass on branch
=== Zope3/src/zope/app/traversing/ftests/test_vhosting.py 1.8.2.1 => 1.8.2.2 ===
--- Zope3/src/zope/app/traversing/ftests/test_vhosting.py:1.8.2.1 Mon Sep 8 14:21:51 2003
+++ Zope3/src/zope/app/traversing/ftests/test_vhosting.py Tue Sep 9 17:45:09 2003
@@ -26,12 +26,13 @@
from zope.app.publisher.browser.resource import Resource
from zope.app.traversing import traverse
from zope.security.checker import defineChecker, NoProxy
+from zope.app.container.contained import Contained
__metaclass__ = type
-class MyObj:
- def __getitem__(wrapped_self, key):
- return traverse(wrapped_self, '/foo/bar/' + key)
+class MyObj(Contained):
+ def __getitem__(self, key):
+ return traverse(self, '/foo/bar/' + key)
defineChecker(MyObj, NoProxy)
@@ -130,9 +131,9 @@
provideResource('quux', IBrowserPresentation, Resource)
self.addPage('/foo/bar/pt',
u'<span tal:replace="context/++resource++quux" />')
- self.verify('/foo/bar/pt', '/@@/quux\n')
+ self.verify('/foo/bar/pt', 'http://localhost/@@/quux\n')
self.verify('/foo/++vh++https:otherhost:443/fake/folders/++/bar/pt',
- '/fake/folders/@@/quux\n')
+ 'https://otherhost/fake/folders/@@/quux\n')
def createFolders(self, path):
"""addFolders('/a/b/c/d') would traverse and/or create three nested
More information about the Zope3-Checkins
mailing list