MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / test_years

Method test_years

tests/test_syntax/extensions/test_smarty.py:88–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 )
87
88 def test_years(self):
89 self.assertMarkdownRenders("1440--80's", '<p>1440&ndash;80&rsquo;s</p>')
90 self.assertMarkdownRenders("1440--'80s", '<p>1440&ndash;&rsquo;80s</p>')
91 self.assertMarkdownRenders("1440---'80s", '<p>1440&mdash;&rsquo;80s</p>')
92 self.assertMarkdownRenders("1960's", '<p>1960&rsquo;s</p>')
93 self.assertMarkdownRenders("one two '60s", '<p>one two &rsquo;60s</p>')
94 self.assertMarkdownRenders("'60s", '<p>&rsquo;60s</p>')
95
96 def test_wrapping_line(self):
97 text = (

Callers

nothing calls this directly

Calls 1

assertMarkdownRendersMethod · 0.80

Tested by

no test coverage detected