[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/tests - testDefaultTraverser.py:1.1.2.8
Steve Alexander
steve@cat-box.net
Wed, 27 Mar 2002 18:10:22 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/tests
In directory cvs.zope.org:/tmp/cvs-serv17837/lib/python/Zope/App/ZopePublication/tests
Modified Files:
Tag: Zope-3x-branch
testDefaultTraverser.py
Log Message:
more fixing up browser_traverse and browser_default
=== Zope3/lib/python/Zope/App/ZopePublication/tests/testDefaultTraverser.py 1.1.2.7 => 1.1.2.8 ===
T = DefaultTraverser(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):
@@ -79,11 +79,11 @@
T = DefaultTraverser(c)
provideView(None , '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')