Commit 554d8f5e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

compare content-type without charset, because zope-2.9 adds charset here.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25406 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5121049f
...@@ -992,7 +992,8 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -992,7 +992,8 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
# if it didn't raise Unauthorized, Ok # if it didn't raise Unauthorized, Ok
response = self.publish('%s/Base_download' % f.getPath()) response = self.publish('%s/Base_download' % f.getPath())
self.assertEquals(file(__file__).read(), response.body) self.assertEquals(file(__file__).read(), response.body)
self.assertEquals('text/plain', response.headers['content-type']) self.assertEquals('text/plain',
response.headers['content-type'].split(';')[0])
self.assertEquals('attachment; filename="%s"' % os.path.basename(__file__), self.assertEquals('attachment; filename="%s"' % os.path.basename(__file__),
response.headers['content-disposition']) response.headers['content-disposition'])
......
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