Skip to content

Commit

Permalink
test - Basic test for osm_xml export
Browse files Browse the repository at this point in the history
  • Loading branch information
phibos committed Apr 7, 2017
1 parent 7eafd1d commit bd77653
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import overpy
from overpy import PY2
from overpy.format import geojson
from overpy.format import geojson, osm_xml

from tests.base_class import read_file

Expand All @@ -18,3 +18,11 @@ def test_node01(self):
result = api.parse_json(read_file("json/node-01.json"))
fp = StringIO()
geojson.dump(result, fp, nodes=True, ways=True)


class TestOSMXML(object):
def test_node01(self):
api = overpy.Overpass()
result = api.parse_json(read_file("json/node-01.json"))
fp = StringIO()
osm_xml.dump(result, fp)

0 comments on commit bd77653

Please sign in to comment.