[Zope3-checkins] CVS: Zope3/src/zope/publisher/tests - test_http.py:1.31

Dmitry Vasiliev dima at hlabs.spb.ru
Tue Mar 30 04:16:22 EST 2004


Update of /cvs-repository/Zope3/src/zope/publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv369/src/zope/publisher/tests

Modified Files:
	test_http.py 
Log Message:
More publisher/http.py optimizations. Tests for request.URL.get() added.


=== Zope3/src/zope/publisher/tests/test_http.py 1.30 => 1.31 ===
--- Zope3/src/zope/publisher/tests/test_http.py:1.30	Mon Mar 29 04:53:22 2004
+++ Zope3/src/zope/publisher/tests/test_http.py	Tue Mar 30 04:16:20 2004
@@ -145,6 +145,11 @@
         self.assertEquals(req.URL['2'], 'http://foobar.com/folder/item')
         self.assertRaises(KeyError, req.URL.__getitem__, '3')
 
+        self.assertEquals(req.URL.get('0'), 'http://foobar.com')
+        self.assertEquals(req.URL.get('1'), 'http://foobar.com/folder')
+        self.assertEquals(req.URL.get('2'), 'http://foobar.com/folder/item')
+        self.assertEquals(req.URL.get('3', 'none'), 'none')
+
         self.assertEquals(req['SERVER_URL'], 'http://foobar.com')
         self.assertEquals(req['HTTP_HOST'], 'foobar.com')
         self.assertEquals(req['PATH_INFO'], '/folder/item')




More information about the Zope3-Checkins mailing list