예제 #1
0
 def test_parse_from_xml_errors(self, data):
     xml = etree.fromstring("".join(data['xml']))
     with self.assertRaises(UpdateFromXmlError):
         parse_from_xml(xml)
예제 #2
0
 def test_parse_from_xml_errors(self, data):
     xml = etree.fromstring("".join(data['xml']))
     with self.assertRaises(UpdateFromXmlError):
         parse_from_xml(xml)
예제 #3
0
    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'])
예제 #4
0
    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'])