@pytest.mark.parametrize('char', range(32))
def test_xml_specialchars(char):
    x = _parse_xml('<?xml version="1.0" encoding="UTF-8" ?><foo>ye{}s\r\nhello</foo>'.format(chr(char)).encode('ascii'))
    if (char in _BAD_XML_CHARS):
        assert (x.text == 'yes\nhello')
@pytest.mark.parametrize('char', range(32))
def test_xml_specialchars(char):
    x = _parse_xml('<?xml version="1.0" encoding="UTF-8" ?><foo>ye{}s\r\nhello</foo>'.format(chr(char)).encode('ascii'))
    if (char in _BAD_XML_CHARS):
        assert (x.text == 'yes\nhello')