Commit 9e4d9017 authored by Carlos Ramos Carreño's avatar Carlos Ramos Carreño

Fix the test for WebDAV.

Fixes an assert due to a unicode/bytes mismatch.
parent 194af65f
...@@ -207,7 +207,7 @@ class TestWebDavSupport(ERP5TypeTestCase): ...@@ -207,7 +207,7 @@ class TestWebDavSupport(ERP5TypeTestCase):
# Convert to base format and run conversion into utf-8 # Convert to base format and run conversion into utf-8
self.tic() self.tic()
# Content-Type header is replaced if conversion encoding succeed # Content-Type header is replaced if conversion encoding succeed
new_text_content = text_content.replace('charset=iso-8859-1', 'charset=utf-8') new_text_content = text_content.encode('utf8').replace('charset=iso-8859-1', 'charset=utf-8')
self.assertEqual(web_page_module[filename].getTextContent(), new_text_content) self.assertEqual(web_page_module[filename].getTextContent(), new_text_content)
def test_GET_on_document(self): def test_GET_on_document(self):
......
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