Browse Source

Issue #76:Fixed failing Asciidoc test

main
Lakshmi Vyasarajan 13 years ago
parent
commit
ce414ee8ea
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      hyde/tests/test_jinja2template.py

+ 7
- 1
hyde/tests/test_jinja2template.py View File

@@ -158,8 +158,14 @@ def test_asciidoc():
</li>
</ul>
"""
assert html == expected_output

assert html
q = PyQuery(html)
assert q
assert q("li").length == 3
assert q("li:eq(0)").text().strip() == "test1"
assert q("li:eq(1)").text().strip() == "test2"
assert q("li:eq(2)").text().strip() == "test3"

def test_markdown():
source = """


Loading…
Cancel
Save