def test_parse_from_xml_errors(self, data): xml = etree.fromstring("".join(data['xml'])) with self.assertRaises(UpdateFromXmlError): parse_from_xml(xml)
def test_parse_from_xml(self, data): xml = etree.fromstring("".join(data['xml'])) result = parse_from_xml(xml) self.maxDiff = None self.assertEqual(result, data['expect'])