Пример #1
0
 def test_enum_hexaID(self):
     xml_doc = ET.fromstring(self.xmlHexaID)
     ast = structureparser.parse_enum_pair(xml_doc)
     self.assertEqual(ast["id"], 0x300)
Пример #2
0
 def test_enum_hexaID(self):
     xml_doc = ET.fromstring(self.xmlHexaID)
     ast = structureparser.parse_enum_pair(xml_doc)
     self.assertEqual(ast["id"], 0x300)
Пример #3
0
 def test_enum_wrongID(self):
     xml_doc = ET.fromstring(self.xmlWrongID)
     self.assertRaises(ValueError, lambda : structureparser.parse_enum_pair(xml_doc))
Пример #4
0
 def test_enum_wrongID(self):
     xml_doc = ET.fromstring(self.xmlWrongID)
     self.assertRaises(ValueError,
                       lambda: structureparser.parse_enum_pair(xml_doc))