def METHOD_NAME(self):
    expected = Element("test", {"foo": "bar &"})
    actual = parse_xml(
        """<test foo="bar &"/>""",
        schema=validate.Schema(xml_element(tag="test", attrib={"foo": str})),
        invalid_char_entities=True,
    )
    assert actual.tag == expected.tag
    assert actual.attrib == expected.attrib