1
0
Fork 0
forked from github/pelican

typogrify also does some changes on the abbr

This commit is contained in:
Alexis Metaireau 2012-07-27 00:34:47 +02:00
commit 0e4d493d93

View file

@ -57,10 +57,10 @@ class RstReaderTest(unittest.TestCase):
# otherwise, typogrify should be applied
content, _ = readers.read_file(_filename('article.rst'),
settings={'TYPOGRIFY': True})
expected = "<p>This is some content. With some stuff to&nbsp;"\
expected = u"<p>This is some content. With some stuff to&nbsp;"\
"&#8220;typogrify&#8221;.</p>\n<p>Now with added "\
'support for <abbr title="three letter acronym">'\
'TLA</abbr>.</p>\n'
'<span class="caps">TLA</span></abbr>.</p>\n'
self.assertEqual(content, expected)
except ImportError: