def test_parse_examples_from_xml(self, data): xml = etree.fromstring("".join(data["xml"])) examples = parse_examples_xml(xml) self.assertEqual(examples, data["examples"])
def test_parse_examples_from_xml(self, data): xml = etree.fromstring("".join(data['xml'])) examples = parse_examples_xml(xml) self.assertEqual(examples, data['examples'])