def test_enum_hexaID(self): xml_doc = ET.fromstring(self.xmlHexaID) ast = structureparser.parse_enum_pair(xml_doc) self.assertEqual(ast["id"], 0x300)
def test_enum_wrongID(self): xml_doc = ET.fromstring(self.xmlWrongID) self.assertRaises(ValueError, lambda : structureparser.parse_enum_pair(xml_doc))
def test_enum_wrongID(self): xml_doc = ET.fromstring(self.xmlWrongID) self.assertRaises(ValueError, lambda: structureparser.parse_enum_pair(xml_doc))