[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/tests - testZopePublication.py:1.1.2.3

Chris McDonough chrism@zope.com
Fri, 30 Nov 2001 16:00:07 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/tests
In directory cvs.zope.org:/tmp/cvs-serv9017/tests

Modified Files:
      Tag: Zope-3x-branch
	testZopePublication.py 
Log Message:
Return extra steps passed in within getBrowserDefault if possible, as well as testing same in unit tests.


=== Zope3/lib/python/Zope/App/ZopePublication/tests/testZopePublication.py 1.1.2.2 => 1.1.2.3 ===
                 
             def browser_default(self, request):
-                return (self.context['bruce'], None)
+                return (self.context['bruce'], 'dummy')
 
         from Zope.ComponentArchitecture import providePresentation
         providePresentation(I1, '_traverse', IBrowserPublisher, Adapter)
@@ -117,6 +117,7 @@
         ob['bruce2'] =  'bruce2'
         pub = self.klass(self.db)
         ob2,x = pub.getDefaultTraversal(self._createRequest('/bruce',pub), ob)
+        self.assertEqual(x, 'dummy')
         self.failUnless(type(ob2) is Wrapper)
         unw = getobject(ob2)
         self.assertEqual(unw, 'bruce')