How to use the betelgeuse.parser.parse_rst function in Betelgeuse

To help you get started, we’ve selected a few Betelgeuse examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SatelliteQE / betelgeuse / tests / test_parser.py View on Github external
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>
github SatelliteQE / betelgeuse / tests / test_parser.py View on Github external
def test_parse_rst_empty_string(string):
    """Check ``parse_rst`` returns empty string on empty input."""
    assert parser.parse_rst(string) == ''