summaryrefslogtreecommitdiffstats
path: root/tests/test_md_tw.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-25 06:11:29 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-25 06:11:29 +0000
commite7a890fce73b9e0b286ef24a4b4bf063ed418209 (patch)
treebebc4059c9d56bf039bc68d67f50d4f8e53a1d80 /tests/test_md_tw.py
parentb6ae71a56c966c5236201ba50a52d768ee9fca73 (diff)
tests: Add test_render_header.
* tests/data/renderer-heading-w.md: New file. * tests/data/renderer-heading.md: New file. * tests/data/renderer-lheading-w.md: New file. * tests/data/renderer-lheading.md: New file. * tests/test_md_tw.py (test_render_header): New test method.
Diffstat (limited to 'tests/test_md_tw.py')
-rw-r--r--tests/test_md_tw.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py
index a7a4bd0..3f5fa20 100644
--- a/tests/test_md_tw.py
+++ b/tests/test_md_tw.py
@@ -810,6 +810,15 @@ class TestTWRenderer(object):
self._validate(txt, expected_txt)
+ def test_render_header(self):
+ txt = self._md('renderer-heading.md')
+ expected_txt = self._get('renderer-heading-w.md')
+ self._validate(txt, expected_txt)
+
+ txt = self._md('renderer-lheading.md')
+ expected_txt = self._get('renderer-lheading-w.md')
+ self._validate(txt, expected_txt)
+
def teardown(self):
pass