aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_extensions.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_extensions.py')
-rw-r--r--tests/test_extensions.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_extensions.py b/tests/test_extensions.py
index 6642921..6a57878 100644
--- a/tests/test_extensions.py
+++ b/tests/test_extensions.py
@@ -226,6 +226,17 @@ class TestCodeHilite(unittest.TestCase):
'#line 3</code></pre>'
)
+ def testUsePygmentsFalse(self):
+ text = '\t:::Python\n\t# A Code Comment'
+ md = markdown.Markdown(
+ extensions=[markdown.extensions.codehilite.CodeHiliteExtension(use_pygments=False)]
+ )
+ self.assertEqual(
+ md.convert(text),
+ '<pre class="codehilite"><code class="language-python"># A Code Comment'
+ '</code></pre>'
+ )
+
class TestFencedCode(unittest.TestCase):
""" Test fenced_code extension. """