def METHOD_NAME(self):
    xml_doc = self._export_to_xml()
    xml_doc = ElementTree.fromstring(xml_doc)
    for elem in xml_doc:
        case_run_id = int(elem.get("case_run_id"))
        if case_run_id == self.case_run_1.pk:
            log_links_elems = elem.find("loglinks").findall("loglink")
            self.assertEqual(2, len(log_links_elems))
            self.assert_case_run_links(
                case_run_id,
                log_links=[(elem.get("name"), elem.get("url")) for elem in log_links_elems],
                expected_links_count=2,
            )
        if case_run_id == self.case_run_2.pk:
            log_links_elems = elem.find("loglinks").findall("loglink")
            self.assertEqual(3, len(log_links_elems))
            self.assert_case_run_links(
                case_run_id,
                log_links=[(elem.get("name"), elem.get("url")) for elem in log_links_elems],
                expected_links_count=3,
            )