other2 = v.from_python(python, None)
assert other == other2
+
+def test_GasthausboxDictValidator():
+ v = wrpylib.wrvalidators.GasthausboxDictValidator()
+ other = collections.OrderedDict([
+ (u'Position', u'47.295549 N 9.986970 E'),
+ (u'Höhe', u'1250'),
+ (u'Betreiber', u''),
+ (u'Sitzplätze', u''),
+ (u'Übernachtung', u''),
+ (u'Rauchfrei', u'Nein'),
+ (u'Rodelverleih', u''),
+ (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]]')])
+ python = v.to_python(other, None)
+ other2 = v.from_python(python, None)
+ assert other == other2
+