From 9f74cc4b801657862631235918da8217c9360160 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 18 Feb 2018 19:31:43 +0000 Subject: tests: Add TestTWRenderer.test_render_block_code. * tests/data/renderer-block-code-w.md: New file. * tests/data/renderer-block-code.md: New file. * tests/test_md_tw.py (TestTWRenderer) [test_render_block_code]: New test method. --- tests/data/renderer-block-code-w.md | 10 ++++++++++ tests/data/renderer-block-code.md | 10 ++++++++++ tests/test_md_tw.py | 6 ++++++ 3 files changed, 26 insertions(+) create mode 100644 tests/data/renderer-block-code-w.md create mode 100644 tests/data/renderer-block-code.md (limited to 'tests') diff --git a/tests/data/renderer-block-code-w.md b/tests/data/renderer-block-code-w.md new file mode 100644 index 0000000..b4646d4 --- /dev/null +++ b/tests/data/renderer-block-code-w.md @@ -0,0 +1,10 @@ +Let's have some chaos: + + $ echo 'Zap!' + $ rm -rf / + +> Some Jaromil art inside a block quote +> +> $ :(){:|:&};: +> +> For more look at jaromil.dyne.org. He's awesome. diff --git a/tests/data/renderer-block-code.md b/tests/data/renderer-block-code.md new file mode 100644 index 0000000..b4646d4 --- /dev/null +++ b/tests/data/renderer-block-code.md @@ -0,0 +1,10 @@ +Let's have some chaos: + + $ echo 'Zap!' + $ rm -rf / + +> Some Jaromil art inside a block quote +> +> $ :(){:|:&};: +> +> For more look at jaromil.dyne.org. He's awesome. diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py index ccdd016..2c300c5 100644 --- a/tests/test_md_tw.py +++ b/tests/test_md_tw.py @@ -798,6 +798,12 @@ class TestTWRenderer(object): self._validate(txt, expected_txt) + def test_render_block_code(self): + txt = self._md('renderer-block-code.md') + expected_txt = self._get('renderer-block-code-w.md') + + self._validate(txt, expected_txt) + def teardown(self): if self.del_tmp_dir: shutil.rmtree(self.tmp_dir) -- cgit v1.2.3