summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Smith <zd@zdsmith.com>2015-12-28 12:32:28 -0500
committerZach Smith <zd@zdsmith.com>2015-12-28 12:32:28 -0500
commit725ecf8bc1022c3816dbea65ea62061cbaf6094d (patch)
tree1af53d68f4a32d68d94e99e56d8a92b18b7ac90a
parent6502a836493c2dc19fcd1521225ba4c794f7d82c (diff)
downloadpycco-725ecf8bc1022c3816dbea65ea62061cbaf6094d.tar.gz
Make indent test useful
-rw-r--r--tests/test_pycco.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_pycco.py b/tests/test_pycco.py
index be4e620..85eecc1 100644
--- a/tests/test_pycco.py
+++ b/tests/test_pycco.py
@@ -130,15 +130,16 @@ def x():
def test_indented_block():
- code = '''"""
-To install Pycco, simply
+ code = '''"""To install Pycco, simply
pip install pycco
"""
'''
parsed = p.parse(code, PYTHON)
highlighted = p.highlight(parsed, PYTHON, outdir=tempfile.gettempdir())
- print highlighted
+ pre_block = highlighted[0]['docs_html']
+ assert '<pre>' in pre_block
+ assert '</pre>' in pre_block
def test_generate_documentation():