def test_code(): P = inline_markdown.Inline_Markdown_Paser() a = "This is `code` text" b = "This is <code>code</code> text" assert_equal(P(a), b)
def test_strongred(): P = inline_markdown.Inline_Markdown_Paser() a = "This is *strongred* text" b = 'This is <strong style="color:#c23">strongred</strong> text' assert_equal(P(a), b)
from miniprez import inline_markdown from nose.tools import assert_equal P = inline_markdown.Inline_Markdown_Paser() def test_bold(): a = "This is **bold** text" b = "This is <strong>bold</strong> text" assert_equal(P(a), b) def test_emph(): a = "This is _italic_ text" b = "This is <em>italic</em> text" assert_equal(P(a), b) def test_code(): P = inline_markdown.Inline_Markdown_Paser() a = "This is `code` text" b = "This is <code>code</code> text" assert_equal(P(a), b) def test_strongred(): P = inline_markdown.Inline_Markdown_Paser() a = "This is *strongred* text" b = 'This is <strong style="color:#c23">strongred</strong> text' assert_equal(P(a), b)