def METHOD_NAME(self):
    expected_html = '<span class="annotatable-span highlight highlight-yellow" data-comment-title="x" data-comment-body="y" data-problem-id="0">z</span>'  # lint-amnesty, pylint: disable=line-too-long
    expected_el = etree.fromstring(expected_html)
    actual_el = etree.fromstring('<annotation title="x" body="y" problem="0" highlight="yellow">z</annotation>')
    self.annotatable._render_annotation(0, actual_el)  # lint-amnesty, pylint: disable=protected-access
    assert expected_el.tag == actual_el.tag
    assert expected_el.text == actual_el.text
    self.assertDictEqual(dict(expected_el.attrib), dict(actual_el.attrib))