Commit 097688ed authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

do not depends on case of charset for test

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