[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container/tests - testContainerTraverser.py:1.1.2.2
Jim Fulton
jim@zope.com
Tue, 26 Mar 2002 16:26:25 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container/tests
In directory cvs.zope.org:/tmp/cvs-serv7731/Zope/App/OFS/Container/tests
Modified Files:
Tag: Zope-3x-branch
testContainerTraverser.py
Log Message:
Merged the publication refactoring branch into the main branch.
Also renamed:
browser_reaverse -> publishTraverse
browser_default -> browserDefault
=== Zope3/lib/python/Zope/App/OFS/Container/tests/testContainerTraverser.py 1.1.2.1 => 1.1.2.2 ===
T = ContainerTraverser(c)
- self.failUnless(T.browser_traverse(req,'foo') is foo)
+ self.failUnless(T.publishTraverse(req,'foo') is foo)
- self.assertRaises(NotFoundError , T.browser_traverse, req ,'morebar')
+ self.assertRaises(NotFoundError , T.publishTraverse, req ,'morebar')
def testView(self):
@@ -81,11 +81,11 @@
T = ContainerTraverser(c)
provideView(IContainer, 'foo', I, View)
- self.failUnless(T.browser_traverse(req,'foo;view').__class__ is View )
- self.failUnless(T.browser_traverse(req,'foo') is foo)
+ self.failUnless(T.publishTraverse(req,'foo;view').__class__ is View )
+ self.failUnless(T.publishTraverse(req,'foo') is foo)
- self.assertRaises(NotFoundError , T.browser_traverse, req, 'morebar')
- self.assertRaises(NotFoundError , T.browser_traverse, req,
+ self.assertRaises(NotFoundError , T.publishTraverse, req, 'morebar')
+ self.assertRaises(NotFoundError , T.publishTraverse, req,
'morebar;view')