Commit 65e929ca authored by Aurel's avatar Aurel

do not depends on case of charset for test

parent fe7c83de
......@@ -442,7 +442,7 @@ class TestOOoStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
% self.portal.getId(), self.auth)
self.assertEqual(HTTP_OK, response.getStatus())
content_type = response.getHeader('content-type')
self.assertEquals('text/html;charset=UTF-8', content_type)
self.assertEquals('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.assertTrue('office:document-content' in response.getBody())
......@@ -453,7 +453,7 @@ class TestOOoStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
% self.portal.getId(), self.auth)
self.assertEqual(HTTP_OK, response.getStatus())
content_type = response.getHeader('content-type')
self.assertEquals('text/html;charset=UTF-8', content_type)
self.assertEquals('text/html;charset=utf-8', content_type.lower())
self.assertFalse(response.getHeader('content-disposition'))
self.assertTrue('office:document-content' in response.getBody())
......@@ -463,7 +463,7 @@ class TestOOoStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
% self.portal.getId(), self.auth)
self.assertEqual(HTTP_OK, response.getStatus())
content_type = response.getHeader('content-type')
self.assertEquals('text/html;charset=UTF-8', content_type)
self.assertEquals('text/html;charset=utf-8', content_type.lower())
self.assertFalse(response.getHeader('content-disposition'))
self.assertTrue('office:document-content' in 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