[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/Browser/tests - testAttributePublisher.py:1.1.2.11 testBrowserRequest.py:1.1.4.5
Steve Alexander
steve@cat-box.net
Wed, 27 Mar 2002 18:04:43 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv16410/lib/python/Zope/Publisher/Browser/tests
Modified Files:
Tag: Zope-3x-branch
testAttributePublisher.py testBrowserRequest.py
Log Message:
correcting browser_default to browserDefault and browser_traverse
to publishTraverse.
=== Zope3/lib/python/Zope/Publisher/Browser/tests/testAttributePublisher.py 1.1.2.10 => 1.1.2.11 ===
def testBrowserDefault(self):
- self.assertEquals(self.pres.browser_default(None),
+ self.assertEquals(self.pres.browserDefault(None),
(self.pres, ('index.html',)))
def testBrowserTraverseIndexHtml(self):
- self.assertEquals(self.pres.browser_traverse(None, 'index.html'),
+ self.assertEquals(self.pres.publishTraverse(None, 'index.html'),
'index')
def testBrowserTraverseIndex(self):
- self.assertEquals(self.pres.browser_traverse(None, 'index'),
+ self.assertEquals(self.pres.publishTraverse(None, 'index'),
'index')
def testBrowserTraverseActionHtml(self):
- self.assertEquals(self.pres.browser_traverse(None, 'action.html'),
+ self.assertEquals(self.pres.publishTraverse(None, 'action.html'),
'action')
def testBrowserTraverseAction(self):
- self.assertEquals(self.pres.browser_traverse(None, 'action'),
+ self.assertEquals(self.pres.publishTraverse(None, 'action'),
'action')
def testBrowserTraverseNotFound(self):
- self.failUnlessRaises(AttributeError, self.pres.browser_traverse,
+ self.failUnlessRaises(AttributeError, self.pres.publishTraverse,
None, 'bar')
=== Zope3/lib/python/Zope/Publisher/Browser/tests/testBrowserRequest.py 1.1.4.4 => 1.1.4.5 ===
def getDefaultTraversal(self, request, ob):
- if hasattr(ob, 'browser_default'):
- return ob.browser_default(request)
+ if hasattr(ob, 'browserDefault'):
+ return ob.browserDefault(request)
return ob, ()
@@ -57,7 +57,7 @@
class View:
" "
- def browser_default(self, request):
+ def browserDefault(self, request):
return self, ['index']
def index(self, a, b):
@@ -68,7 +68,7 @@
" "
view = View()
- def browser_default(self, request):
+ def browserDefault(self, request):
return self, ['view']