def test_xint_3 (self) : tree = ET.ElementTree(file = "WC2.xml") root = tree.getroot() people = root.findall("person") day = xint(people[3].find("info").find("birthdate").find("day")) self.assert_(day == 25)
def test_xint_2 (self) : tree = ET.ElementTree(file = "WC2.xml") root = tree.getroot() crises = root.findall("crisis") time = xint(crises[0].find("info").find("time").find("time")) self.assert_(time == 0)