assert v.from_python((True, u'Ja')) == u'Ja'
-def test_RodelbahnboxValidator():
- v = wrpylib.wrvalidators.RodelbahnboxValidator()
+def test_RodelbahnboxDictValidator():
+ v = wrpylib.wrvalidators.RodelbahnboxDictValidator()
other = {
u'Position': u'47.309820 N 9.986508 E',
u'Position oben': u'',
BoolUnicodeTupleValidator.__init__(self, Loop(ValueCommentList()))
-class RodelbahnboxValidator(formencode.Schema):
+class RodelbahnboxDictValidator(formencode.Schema):
"""Takes the fields of the Rodelbahnbox as dict of strings and returns them as dict of appropriet types."""
def __init__(self):
self.add_field(u'Position', GeoNone()) # '47.583333 N 15.75 E'