(self)
| 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 | |
| 273 | class TestSmarty(unittest.TestCase): |
nothing calls this directly
no outgoing calls
no test coverage detected