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

Method testRE

tests/test_extensions.py:262–270  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

260 self.md = markdown.Markdown(extensions=['admonition'])
261
262 def testRE(self):
263 RE = self.md.parser.blockprocessors['admonition'].RE
264 tests = [
265 ('!!! note', ('note', None)),
266 ('!!! note "Please Note"', ('note', 'Please Note')),
267 ('!!! note ""', ('note', '')),
268 ]
269 for test, expected in tests:
270 self.assertEqual(RE.match(test).groups(), expected)
271
272
273class TestSmarty(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected