summaryrefslogtreecommitdiff
path: root/tests/test_extensions.py
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2023-05-13 21:56:33 +0300
committerWaylan Limberg <waylan.limberg@icloud.com>2023-05-16 11:42:55 -0400
commit965c06c398a394b1da06651bb4ed62be7609a946 (patch)
treeba6adcea01d010c8c2162266493c93de8f8bd975 /tests/test_extensions.py
parent1aa4c3d385a8456397c5189079c90e818fc34a06 (diff)
downloadpython-markdown-master.tar.gz
Port all smarty tests to the new frameworkHEADmaster
Diffstat (limited to 'tests/test_extensions.py')
-rw-r--r--tests/test_extensions.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/test_extensions.py b/tests/test_extensions.py
index ad985c3..c8cee99 100644
--- a/tests/test_extensions.py
+++ b/tests/test_extensions.py
@@ -629,37 +629,3 @@ class TestTOC(TestCaseWithAssertStartsWith):
'</div>\n' # noqa
'<h1 id="toc"><em>[TOC]</em></h1>' # noqa
)
-
-
-class TestSmarty(unittest.TestCase):
- def setUp(self):
- config = {
- 'smarty': [
- ('smart_angled_quotes', True),
- ('substitutions', {
- 'ndash': '\u2013',
- 'mdash': '\u2014',
- 'ellipsis': '\u2026',
- 'left-single-quote': '&sbquo;', # `sb` is not a typo!
- 'right-single-quote': '&lsquo;',
- 'left-double-quote': '&bdquo;',
- 'right-double-quote': '&ldquo;',
- 'left-angle-quote': '[',
- 'right-angle-quote': ']',
- }),
- ]
- }
- self.md = markdown.Markdown(
- extensions=['smarty'],
- extension_configs=config
- )
-
- def testCustomSubstitutions(self):
- text = """<< The "Unicode char of the year 2014"
-is the 'mdash': ---
-Must not be confused with 'ndash' (--) ... >>
-"""
- correct = """<p>[ The &bdquo;Unicode char of the year 2014&ldquo;
-is the &sbquo;mdash&lsquo;: \u2014
-Must not be confused with &sbquo;ndash&lsquo; (\u2013) \u2026 ]</p>"""
- self.assertEqual(self.md.convert(text), correct)