summaryrefslogtreecommitdiffstats
path: root/tests/test_md_tw.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-18 19:31:43 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-18 19:31:43 +0000
commit9f74cc4b801657862631235918da8217c9360160 (patch)
treef78e5bccf9dc5029e8b9bf5e25c997f398d7f303 /tests/test_md_tw.py
parent1560df979ae7a72dc5409ad4ed334ca293759eb0 (diff)
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.
Diffstat (limited to 'tests/test_md_tw.py')
-rw-r--r--tests/test_md_tw.py6
1 files changed, 6 insertions, 0 deletions
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)