Django

Code

Ticket #1632: markdown-test.patch

File markdown-test.patch, 0.5 kB (added by pb, 3 years ago)

markdown patch

  • tests/othertests/markup.py

    old new  
    4646 
    4747t = Template("{{ markdown_content|markdown }}") 
    4848rendered = t.render(Context(locals())).strip() 
    49 if textile
    50     assert rendered == """<p>Paragraph 1</p><h2>An h2</h2>""" 
     49if markdown
     50    assert rendered == """<p>Paragraph 1</p>\n\n<h2>An h2</h2>""" 
    5151else: 
    5252    assert rendered == markdown_content