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

Method test_code_comments

tests/test_syntax/inline/test_code.py:27–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25class TestCode(TestCase):
26
27 def test_code_comments(self):
28 self.assertMarkdownRenders(
29 self.dedent(
30 """
31 Some code `<!--` that is not HTML `-->` in a paragraph.
32
33 Some code `<!--`
34 that is not HTML `-->`
35 in a paragraph.
36 """
37 ),
38 self.dedent(
39 """
40 <p>Some code <code>&lt;!--</code> that is not HTML <code>--&gt;</code> in a paragraph.</p>
41 <p>Some code <code>&lt;!--</code>
42 that is not HTML <code>--&gt;</code>
43 in a paragraph.</p>
44 """
45 )
46 )
47
48 def test_code_html(self):
49 self.assertMarkdownRenders(

Callers

nothing calls this directly

Calls 2

assertMarkdownRendersMethod · 0.80
dedentMethod · 0.80

Tested by

no test coverage detected