diff --git a/pelican/tests/test_utils.py b/pelican/tests/test_utils.py index bca783cb..a189fbab 100644 --- a/pelican/tests/test_utils.py +++ b/pelican/tests/test_utils.py @@ -6,10 +6,10 @@ import time from sys import platform from tempfile import mkdtemp -import pytz - from markupsafe import Markup +import pytz + from pelican import utils from pelican.generators import TemplatePagesGenerator from pelican.readers import Readers @@ -239,26 +239,26 @@ class TestUtils(LoggedTestCase): # marker containing HTML tags. self.assertEqual( utils.truncate_html_words('
' + 'word ' * 100 + '
', 20, - 'marker'), + 'marker'), '' + 'word ' * 20 + 'marker
') self.assertEqual( utils.truncate_html_words( - '' + 'word ' * 100 + '', 20, - 'marker'), + '' + 'word ' * 100 + '', 20, + 'marker'), '' + 'word ' * 20 + 'marker') self.assertEqual( utils.truncate_html_words('' + 'word ' * 100 + '
', 20, - Markup('marker')), + Markup('marker')), '' + 'word ' * 20 + 'marker
') # Words with hypens and apostrophes.