def setUp(self): """ For each test create the Woonplaats read from xml file woonplaats.xml The geometry actually consists of an gml polygon element which includes an outer and inner ring. """ xml_file = open("test/data/woonplaats.xml") root = ET.fromstring(xml_file.read()) xml_woonplaats = find_xml_with_tag(root, "Woonplaats", None) self.woonplaats = bag.woonplaats() self.woonplaats.process(xml_woonplaats) xml_file.close()
def setUp(self): """ For each test create the Woonplaats read from xml file woonplaats_multipolygon.xml The geometry actually consists of two seperate gml polygon elements which the first polygon includes two inner rings. """ xml_file = open("test/data/woonplaats_multipolygon.xml") root = ET.fromstring(xml_file.read()) xml_woonplaats = find_xml_with_tag(root, "Woonplaats", None) self.woonplaats = bag.woonplaats() self.woonplaats.process(xml_woonplaats) xml_file.close()