X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/blobdiff_plain/ebe9dee556cbc010e4125a0835b041972cf20879..4dffa89e57d37435a09e1ec62889cb3670dc23ee:/tests/test_wrmwmarkup.py diff --git a/tests/test_wrmwmarkup.py b/tests/test_wrmwmarkup.py index 5ebfe1f..189c7c1 100644 --- a/tests/test_wrmwmarkup.py +++ b/tests/test_wrmwmarkup.py @@ -72,17 +72,17 @@ def test_parse_googlemap(): 47.112408,11.271119 ''' - attributes, json = wrpylib.wrmwmarkup.parse_googlemap(wikitext) - assert attributes['lon'] == 11.272337 - assert attributes['lat'] == 47.113291 - assert attributes['zoom'] == 15 - assert json['features'][0]['properties']['type'] == 'carpark' + json = wrpylib.wrmwmarkup.parse_googlemap(wikitext) + assert json['properties']['lon'] == 11.272337 + assert json['properties']['lat'] == 47.113291 + assert json['properties']['zoom'] == 15 + assert json['features'][0]['properties']['type'] == 'parkplatz' assert json['features'][0]['properties']['name'] == 'Erster Parkplatz' assert json['features'][0]['geometry']['coordinates'] == [11.266026, 47.114958] - assert json['features'][1]['properties']['type'] == 'inn' + assert json['features'][1]['properties']['type'] == 'gasthaus' assert json['features'][1]['properties']['name'] == u'Alt Bärnbad (Gasthaus)' assert json['features'][1]['geometry']['coordinates'] == [11.266262, 47.114715] - assert json['features'][2]['properties']['type'] == 'sledrun' + assert json['features'][2]['properties']['type'] == 'rodelbahn' assert json['features'][2]['geometry']['coordinates'] == [ [11.266262, 47.114715], [11.268381, 47.114135],