diff options
author | rsiddharth <s@ricketyspace.net> | 2018-03-05 02:37:14 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2018-03-05 02:37:14 +0000 |
commit | e357ce168c8f6a78df349fbb262d71bf46fe11b5 (patch) | |
tree | 5464528596427faf14849566a0248c654d2bc412 /tests/test_md_tw.py | |
parent | 910df833d986dc1915fb40e784ec2e143b915c22 (diff) |
tests: Add TestTWRenderer.test_render_footnote_item.
* tests/data/renderer-footnotes-w.md: New file.
* tests/data/renderer-footnotes.md: New file.
* tests/test_md_tw.py (TestTWRenderer)
[test_render_footnote_item]: New test method.
Diffstat (limited to 'tests/test_md_tw.py')
-rw-r--r-- | tests/test_md_tw.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py index f2f5fd2..34fe766 100644 --- a/tests/test_md_tw.py +++ b/tests/test_md_tw.py @@ -485,7 +485,6 @@ class TestTWBlockLexer(object): def test_parse_def_footnotes(self): tokens = self._parse('blexer-footnotes.md') - def process(tokens): token = tokens.pop(0) while token: @@ -829,6 +828,11 @@ class TestTWRenderer(object): expected_txt = self._get('renderer-def-links-w.md') self._validate(txt, expected_txt) + def test_render_footnote_item(self): + txt = self._md('renderer-footnotes.md') + expected_txt = self._get('renderer-footnotes-w.md') + self._validate(txt, expected_txt) + def teardown(self): pass |