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_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_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)