Commit 042d227a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

in Zope-2.12, content-type contains charset parameter.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39034 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 70ca41b8
...@@ -589,7 +589,7 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -589,7 +589,7 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional):
# first, preview the draft in its physical location (in document module) # first, preview the draft in its physical location (in document module)
response = self.publish('%s/asEntireHTML' % document.absolute_url_path(), response = self.publish('%s/asEntireHTML' % document.absolute_url_path(),
credential) credential)
self.assertEquals(response.getHeader('content-type'), 'text/html') self.assertTrue(response.getHeader('content-type').startswith('text/html'))
html = response.getBody() html = response.getBody()
self.assertTrue('<img' in html, html) self.assertTrue('<img' in html, html)
...@@ -614,7 +614,7 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -614,7 +614,7 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional):
response = self.publish('%s/%s/asEntireHTML' % ( response = self.publish('%s/%s/asEntireHTML' % (
website.absolute_url_path(), document_reference)) website.absolute_url_path(), document_reference))
self.assertEquals(response.getHeader('content-type'), 'text/html') self.assertTrue(response.getHeader('content-type').startswith('text/html'))
html = response.getBody() html = response.getBody()
self.assertTrue('<img' in html, html) self.assertTrue('<img' in html, html)
......
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