(self)
| 193 | # Most of the heavy lifting is tested by `MarkdownToSafeHTMLTest`. |
| 194 | |
| 195 | def test_simple(self): |
| 196 | inputs = ["0", "*1*", "**2**"] |
| 197 | combine = lambda xs: "<br>".join(xs) |
| 198 | actual = plugin_util.markdowns_to_safe_html(inputs, combine) |
| 199 | expected = "<p>0</p><br><p><em>1</em></p><br><p><strong>2</strong></p>" |
| 200 | self.assertEqual(actual, expected) |
| 201 | |
| 202 | def test_sanitizes_combination_result(self): |
| 203 | inputs = ["safe"] |