[Zope-Checkins] CVS: Zope/lib/python/ZPublisher/tests - testBaseRequest.py:1.1.2.2

Yvo Schubbe schubbe at web.de
Fri Oct 10 12:44:48 EDT 2003


Update of /cvs-repository/Zope/lib/python/ZPublisher/tests
In directory cvs.zope.org:/tmp/cvs-serv27852/lib/python/ZPublisher/tests

Modified Files:
      Tag: yuppie-collector1079-branch
	testBaseRequest.py 
Log Message:
Uups!
- re-added deleted line
- added test that fails without that line

=== Zope/lib/python/ZPublisher/tests/testBaseRequest.py 1.1.2.1 => 1.1.2.2 ===
--- Zope/lib/python/ZPublisher/tests/testBaseRequest.py:1.1.2.1	Fri Oct 10 09:27:47 2003
+++ Zope/lib/python/ZPublisher/tests/testBaseRequest.py	Fri Oct 10 12:44:47 2003
@@ -140,6 +140,13 @@
         self.f1.objWithBD._default_path = ['']
         self.failUnlessRaises('NotFound', r.traverse, 'folder/objWithBD')
 
+    def test_traverse_slash(self):
+        r = self.makeBaseRequest()
+        r['PARENTS'] = [self.f1.objWithDefault]
+        r.traverse('/')
+        self.assertEqual(r.URL, '/index_html')
+        self.assertEqual(r.response.base, '')
+
 
 def test_suite():
     return TestSuite( ( makeSuite(TestBaseRequest), ) )




More information about the Zope-Checkins mailing list