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"
def test_parsing_unicode_string_without_encoding(): x = parse_xml_string("""<?xml version="1.0" ?><quz />""") assert x.tag == "quz"
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_without_encoding(): x = parse_xml_string(b"""<?xml version="1.0" ?><bar />""") assert x.tag == "bar"
def test_parsing_byte_string_with_encoding(): x = parse_xml_string(b"""<?xml version="1.0" encoding="UTF-8" ?><foo />""") assert x.tag == "foo"