Switch to pytest

This commit is contained in:
Matthew Tretter
2013-07-31 16:54:37 -04:00
parent b92428466d
commit c2f32b8049
9 changed files with 147 additions and 131 deletions

13
tests/test_basic.py Normal file
View File

@@ -0,0 +1,13 @@
from markdownify import markdownify as md
def test_single_tag():
assert md('<span>Hello</span>') == 'Hello'
def test_soup():
assert md('<div><span>Hello</div></span>') == 'Hello'
def test_whitespace():
assert md(' a b \n\n c ') == ' a b c '