markdown-textwrap

text wrap markdown documents
git clone git://git.ricketyspace.net/markdown-textwrap.git
Log | Files | Refs

commit e7a890fce73b9e0b286ef24a4b4bf063ed418209
parent b6ae71a56c966c5236201ba50a52d768ee9fca73
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 25 Feb 2018 06:11:29 +0000

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:
tests/data/renderer-heading-w.md | 11+++++++++++
tests/data/renderer-heading.md | 11+++++++++++
tests/data/renderer-lheading-w.md | 13+++++++++++++
tests/data/renderer-lheading.md | 13+++++++++++++
tests/test_md_tw.py | 9+++++++++
5 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/tests/data/renderer-heading-w.md b/tests/data/renderer-heading-w.md @@ -0,0 +1,11 @@ +# Milky Chance + +Clemens, Phillipp, Antonio + +## Flashed + +Lost our mind. + +### Junk Mind + +In the junkyard. diff --git a/tests/data/renderer-heading.md b/tests/data/renderer-heading.md @@ -0,0 +1,11 @@ +# Milky Chance + +Clemens, Phillipp, Antonio + +## Flashed + +Lost our mind. + +### Junk Mind + +In the junkyard. diff --git a/tests/data/renderer-lheading-w.md b/tests/data/renderer-lheading-w.md @@ -0,0 +1,13 @@ +Milky Chance +============ + +Clemens, Phillipp, Antonio + +Flashed +------- + +Lost our mind. + +### Junk Mind + +In the junkyard. diff --git a/tests/data/renderer-lheading.md b/tests/data/renderer-lheading.md @@ -0,0 +1,13 @@ +Milky Chance +============ + +Clemens, Phillipp, Antonio + +Flashed +------- + +Lost our mind. + +### Junk Mind + +In the junkyard. diff --git 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