Renamed RodelbahnboxValidator to RodelbahnboxDictValidator.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 8 Mar 2014 19:42:57 +0000 (19:42 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 8 Mar 2014 19:42:57 +0000 (19:42 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@1915 7aebc617-e5e2-0310-91dc-80fb5f6d2477

tests/test_wrvalidators.py
wrpylib/wrvalidators.py

index d2839a9906593ef35b33f0b956cdbb0e38ebed8b..24c361910e29da89a26e456e0888f670e21fcbd0 100644 (file)
@@ -277,8 +277,8 @@ def test_SledRental():
     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'',
index 2b43cab87897505f2f022b2b60d2e12718ed3f4b..beea7205929e085f3a25039c0d7ad96c816801e0 100644 (file)
@@ -747,7 +747,7 @@ class SledRental(BoolUnicodeTupleValidator):
         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'