Commit e052fc1c authored by Jérome Perrin's avatar Jérome Perrin

run_my_doc: py3

parent 1f943ab6
...@@ -76,7 +76,7 @@ def extractTest(text): ...@@ -76,7 +76,7 @@ def extractTest(text):
# Include Macros as it is defined by the user. # Include Macros as it is defined by the user.
testcode += row[0].text testcode += row[0].text
else: else:
testcode += lxml.html.tostring(row) testcode += lxml.html.tostring(row, encoding='unicode')
return testcode.strip() return testcode.strip()
""" """
......
...@@ -135,7 +135,7 @@ class TestRunMyDoc(DocumentUploadTestCase): ...@@ -135,7 +135,7 @@ class TestRunMyDoc(DocumentUploadTestCase):
image_upload.seek(0) image_upload.seek(0)
self.assertEqual(image_page_2.getData(), base64.b64decode(image_upload.read())) self.assertEqual(image_page_2.getData(), base64.b64decode(image_upload.read()))
self.assertEqual(image_page_2.getFilename(), image_reference + '.png') self.assertEqual(image_page_2.getFilename(), image_reference + '.png')
self.assertEqual(image_page.getData(), '') self.assertEqual(image_page.getData(), b'')
def test_viewSeleniumTest(self): def test_viewSeleniumTest(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