Commit 347d574a authored by Aurel's avatar Aurel Committed by Jérome Perrin

do not depends on case of charset for test

parent 186a5030
......@@ -496,7 +496,7 @@ class TestOOoStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
% self.portal.getId(), self.auth)
self.assertEqual(HTTP_OK, response.getStatus())
content_type = response.getHeader('content-type')
self.assertEqual('text/html;charset=UTF-8', content_type)
self.assertEqual('text/html;charset=utf-8', content_type.lower())
self.assertFalse(response.getHeader('content-disposition'))
# Simplistic assertion that we are viewing the ODF XML source
self.assertIn('office:document-content', response.getBody())
......@@ -507,7 +507,7 @@ class TestOOoStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
% self.portal.getId(), self.auth)
self.assertEqual(HTTP_OK, response.getStatus())
content_type = response.getHeader('content-type')
self.assertEqual('text/html;charset=UTF-8', content_type)
self.assertEqual('text/html;charset=utf-8', content_type.lower())
self.assertFalse(response.getHeader('content-disposition'))
self.assertIn('office:document-content', response.getBody())
......@@ -517,7 +517,7 @@ class TestOOoStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
% self.portal.getId(), self.auth)
self.assertEqual(HTTP_OK, response.getStatus())
content_type = response.getHeader('content-type')
self.assertEqual('text/html;charset=UTF-8', content_type)
self.assertEqual('text/html;charset=utf-8', content_type.lower())
self.assertFalse(response.getHeader('content-disposition'))
self.assertIn('office:document-content', response.getBody())
......
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