+def test_GasthausboxDictConverter():
+ v = wrpylib.wrmwmarkup.GasthausboxDictConverter()
+ other = collections.OrderedDict([
+ (u'Position', (47.295549, 9.986970)),
+ (u'Höhe', 1250),
+ (u'Betreiber', None),
+ (u'Sitzplätze', None),
+ (u'Übernachtung', (None, None)),
+ (u'Rauchfrei', (True, False)),
+ (u'Rodelverleih', (None, None)),
+ (u'Handyempfang', u'A1; T-Mobile/Telering'),
+ (u'Homepage', u'http://www.bergkristallhuette.com/'),
+ (u'E-Mail', u'bergkristallhuette@gmx.at'),
+ (u'Telefon', u'+43-664-1808482'),
+ (u'Bild', u'Bergkritsallhütte 2009-02-07.JPG'),
+ (u'Rodelbahnen', u'[[Bergkristallhütte]]')])
+ inn = v.to_python(other)
+ assert inn.homepage == u'http://www.bergkristallhuette.com/'
+ other2 = v.from_python(inn)
+ assert other == other2
+
+