Files
python-markdownify/tests/test_escaping.py
Matthew Tretter c2f32b8049 Switch to pytest
2013-07-31 16:54:37 -04:00

23 lines
472 B
Python

from markdownify import markdownify as md
def test_underscore():
assert md('_hey_dude_') == '\_hey\_dude\_'
def test_xml_entities():
assert md('&') == '&'
def test_named_entities():
assert md('»') == u'\xbb'
def test_hexadecimal_entities():
# This looks to be a bug in BeautifulSoup (fixed in bs4) that we have to work around.
assert md(''') == '\x27'
def test_single_escaping_entities():
assert md('&') == '&'