def test_read_common_content_1(self) : testXMLFile = "crises/test_data/WorldCrises_good.xml" root = read_and_validate_xml (testXMLFile) common = root[0].find('Common') a = [] b = [] read_common_content ("ORG_PMRLFD", common, a, b) assert (len(a) > 0) assert (len(b) > 0)
def test_read_common_content_2(self) : testXMLFile = "crises/test_data/WorldCrises_good.xml" root = read_and_validate_xml (testXMLFile) common = root[0].find('NotCommon') a = [] b = [] try : read_common_content ("ORG_PMRLFD", common, a, b) assert(False) except : assert(True)