[Zope-Checkins] CVS: Packages/ZPublisher/tests -
testHTTPResponse.py:1.1.4.3
Andreas Jung
andreas at andreas-jung.com
Sat Sep 24 06:37:19 EDT 2005
Update of /cvs-repository/Packages/ZPublisher/tests
In directory cvs.zope.org:/tmp/cvs-serv25453/lib/python/ZPublisher/tests
Modified Files:
Tag: Zope-2_7-branch
testHTTPResponse.py
Log Message:
Collector #1864, #1906: fixed header normalization in appendHeader()
=== Packages/ZPublisher/tests/testHTTPResponse.py 1.1.4.2 => 1.1.4.3 ===
--- Packages/ZPublisher/tests/testHTTPResponse.py:1.1.4.2 Mon Apr 26 06:11:24 2004
+++ Packages/ZPublisher/tests/testHTTPResponse.py Sat Sep 24 06:37:19 2005
@@ -65,6 +65,16 @@
self.assertEqual(cookie.get('value'), 'bar:baz')
self.assertEqual(cookie.get('path'), '/')
+ def test_appendHeader(self):
+ response = self._makeOne()
+ response.setHeader('foo', 'bar')
+ response.appendHeader('foo', 'foo')
+ self.assertEqual(response.headers.get('foo'), 'bar,\n\tfoo')
+ response.setHeader('xxx', 'bar')
+ response.appendHeader('XXX', 'foo')
+ self.assertEqual(response.headers.get('xxx'), 'bar,\n\tfoo')
+
+
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(HTTPResponseTests, 'test'))
More information about the Zope-Checkins
mailing list