From 0b51106b5915ff7b22ff71d339e640794f9a407c Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 18 Feb 2018 20:42:12 +0000 Subject: tests: Add TestTWRenderer.test_render_block_html. * tests/data/renderer-block-html-w.md: New file. * tests/data/renderer-block-html.md: New file. * tests/test_md_tw.py (test_render_block_html): New test method. --- tests/data/renderer-block-html-w.md | 22 ++++++++++++++++++++++ tests/data/renderer-block-html.md | 22 ++++++++++++++++++++++ tests/test_md_tw.py | 6 ++++++ 3 files changed, 50 insertions(+) create mode 100644 tests/data/renderer-block-html-w.md create mode 100644 tests/data/renderer-block-html.md (limited to 'tests') diff --git a/tests/data/renderer-block-html-w.md b/tests/data/renderer-block-html-w.md new file mode 100644 index 0000000..b8c6c67 --- /dev/null +++ b/tests/data/renderer-block-html-w.md @@ -0,0 +1,22 @@ +This is a regular paragraph. + + + + + +
Monte Carlo
+ +This is another regular paragraph, which is followed by some HTML fluff +decorated with attributes. + +
+
+

A dispute conference; human snafu.

+
+
+ +Which is followed by a + +
+ +Ameba. diff --git a/tests/data/renderer-block-html.md b/tests/data/renderer-block-html.md new file mode 100644 index 0000000..a25207b --- /dev/null +++ b/tests/data/renderer-block-html.md @@ -0,0 +1,22 @@ +This is a regular paragraph. + + + + + +
Monte Carlo
+ +This is another regular paragraph, which is followed by some HTML fluff decorated with +attributes. + +
+
+

A dispute conference; human snafu.

+
+
+ +Which is followed by a + +
+ +Ameba. diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py index 7d42e14..a38afcb 100644 --- a/tests/test_md_tw.py +++ b/tests/test_md_tw.py @@ -796,6 +796,12 @@ class TestTWRenderer(object): self._validate(txt, expected_txt) + def test_render_block_html(self): + txt = self._md('renderer-block-html.md') + expected_txt = self._get('renderer-block-html-w.md') + + self._validate(txt, expected_txt) + def teardown(self): if self.del_tmp_dir: shutil.rmtree(self.tmp_dir) -- cgit v1.2.3