def test_export_gpx_file(self): locations = Routepoints(open("tests/data/gpx_routes")) export = locations.export_gpx_file() routes_xml = etree.parse("tests/data/gpx_routes") for e1, e2 in zip(routes_xml.getiterator(), export.getiterator()): xml_compare(e1, e2, ellipsis=True)
def test_export_kml_file(self): filename = 'tests/data/kml' locations = Placemarks(open(filename)) export = locations.export_kml_file() kml_xml = etree.parse(filename) for e1, e2 in zip(export.getiterator(), kml_xml.getiterator()): xml_compare(e1, e2)
def test_export_gpx_file(self): locations = Trackpoints(open("tests/data/gpx_tracks")) export = locations.export_gpx_file() tracks_xml = etree.parse("tests/data/gpx_tracks") for e1, e2 in zip(export.getiterator(), tracks_xml.getiterator()): xml_compare(e1, e2)
def test_export_osm_file(self): export = self.region.export_osm_file() osm_xml = etree.parse('tests/data/osm') for e1, e2 in zip(export.getiterator(), osm_xml.getiterator()): xml_compare(e1, e2)
def test_export_gpx_file(self): locations = Waypoints(open('tests/data/gpx')) export = locations.export_gpx_file() gpx_xml = etree.parse('tests/data/gpx') for e1, e2 in zip(export.getiterator(), gpx_xml.getiterator()): xml_compare(e1, e2)