fix tests with py3

This commit is contained in:
Philip Bauer
2018-09-18 15:13:38 +02:00
parent a8f2db58ff
commit 95861b28d5
7 changed files with 21 additions and 22 deletions
+2 -1
View File
@@ -171,9 +171,10 @@ class CommentTest(unittest.TestCase):
def test_getText_with_non_ascii_characters(self):
comment1 = createObject('plone.Comment')
comment1.text = u'Umlaute sind ä, ö und ü.'
out = b'<p>Umlaute sind \xc3\xa4, \xc3\xb6 und \xc3\xbc.</p>'
self.assertEqual(
comment1.getText(),
'<p>Umlaute sind \xc3\xa4, \xc3\xb6 und \xc3\xbc.</p>',
out.decode('utf8')
)
def test_getText_doesnt_link(self):