Worked on formatting of output from create_wrmap.
[philipp/winterrodeln/wrpylib.git] / tests / test_wrmwmarkup.py
index 77005dbc1fb712ca8be3ea78e541308702f30a25..2ac1d948583c36baadcc6ef4856e62424fdfb2ce 100644 (file)
@@ -2,6 +2,7 @@
 # -*- coding: iso-8859-15 -*-
 import wrpylib.wrmwmarkup
 import formencode
+import textwrap
 
 
 def test_rodelbahnbox_to_sledrun():
@@ -167,7 +168,7 @@ def test_create_wrmap():
     }
 
     wikitext = wrpylib.wrmwmarkup.create_wrmap(geojson)
-    assert wikitext == u'''
+    assert wikitext == textwrap.dedent(u'''\
     <wrmap lat="47.2417134" lon="11.21408895" zoom="14" width="700" height="400">
     <gasthaus name="Rosskogelhütte" wiki="Rosskogelhütte">47.240689 11.190454</gasthaus>
     <parkplatz>47.245789 11.238971</parkplatz>
@@ -177,5 +178,5 @@ def test_create_wrmap():
         47.244951 11.230868
         47.245470 11.237853
     </rodelbahn>
-    </wrmap>'''
+    </wrmap>''')