From 725ecf8bc1022c3816dbea65ea62061cbaf6094d Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Mon, 28 Dec 2015 12:32:28 -0500 Subject: Make indent test useful --- tests/test_pycco.py | 7 ++++--- 1 file 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 '
' in pre_block
+    assert '
' in pre_block def test_generate_documentation(): -- cgit v1.2.1