def test_parsing_unicode_string_without_encoding():
    x = parse_xml_string("""<?xml version="1.0" ?><quz />""")
    assert x.tag == "quz"
def test_parsing_byte_string_without_encoding():
    x = parse_xml_string(b"""<?xml version="1.0" ?><bar />""")
    assert x.tag == "bar"
def test_parsing_unicode_string_with_encoding():
    x = parse_xml_string("""<?xml version="1.0" encoding="UTF-8" ?><baz />""")
    assert x.tag == "baz"
def test_parsing_byte_string_with_encoding():
    x = parse_xml_string(b"""<?xml version="1.0" encoding="UTF-8" ?><foo />""")
    assert x.tag == "foo"
Exemplo n.º 5
0
def test_parsing_unicode_string_without_encoding():
    x = parse_xml_string("""<?xml version="1.0" ?><quz />""")
    assert x.tag == "quz"
Exemplo n.º 6
0
def test_parsing_unicode_string_with_encoding():
    x = parse_xml_string("""<?xml version="1.0" encoding="UTF-8" ?><baz />""")
    assert x.tag == "baz"
Exemplo n.º 7
0
def test_parsing_byte_string_without_encoding():
    x = parse_xml_string(b"""<?xml version="1.0" ?><bar />""")
    assert x.tag == "bar"
Exemplo n.º 8
0
def test_parsing_byte_string_with_encoding():
    x = parse_xml_string(b"""<?xml version="1.0" encoding="UTF-8" ?><foo />""")
    assert x.tag == "foo"