Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_parse_rst_special_characters():
"""Check if ``parse_rst`` plays nice with special characters."""
assert parser.parse_rst(u'String with special character like é') == (
u'<div class="document">\n'
u'<p>String with special character like é</p>\n'</div>
def test_parse_rst_empty_string(string):
"""Check ``parse_rst`` returns empty string on empty input."""
assert parser.parse_rst(string) == ''