Commit fc751f58 authored by Nicolas Delaby's avatar Nicolas Delaby

Use getHeader function which lower-case header keys

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35846 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c8889fbc
......@@ -1099,9 +1099,9 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
response = self.publish('%s/Base_download' % f.getPath())
self.assertEquals(file(__file__).read(), response.body)
self.assertEquals('text/plain',
response.headers['content-type'].split(';')[0])
response.getHeader('content-type').split(';')[0])
self.assertEquals('attachment; filename="%s"' % os.path.basename(__file__),
response.headers['content-disposition'])
response.getHeader('content-disposition'))
def test_getTypeBasedMethod(self):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment