(self)
| 294 | ) |
| 295 | |
| 296 | def testCustomSubstitutions(self): |
| 297 | text = """<< The "Unicode char of the year 2014" |
| 298 | is the 'mdash': --- |
| 299 | Must not be confused with 'ndash' (--) ... >> |
| 300 | """ |
| 301 | correct = """<p>[ The „Unicode char of the year 2014“ |
| 302 | is the ‚mdash‘: \u2014 |
| 303 | Must not be confused with ‚ndash‘ (\u2013) \u2026 ]</p>""" |
| 304 | self.assertEqual(self.md.convert(text), correct) |