Fixup for E-Mail converter.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 2 Feb 2016 21:09:04 +0000 (21:09 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 2 Feb 2016 21:09:04 +0000 (21:09 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2431 7aebc617-e5e2-0310-91dc-80fb5f6d2477

tests/test_wrvalidators.py
wrpylib/wrvalidators.py

index b12962b4fe22cbef6c570d7b674393b2825f4599..f26c5b8c7b81205c5c391db0055369756c3299f2 100644 (file)
@@ -392,8 +392,7 @@ class TestEmail(unittest.TestCase):
 
     def test_to_str(self):
         for value in self.good_addresses:
-            self.assertEqual(value, email_from_str(value))
-
+            self.assertEqual(value, email_to_str(value))
 
 
 class TestBox(unittest.TestCase):
index 0a180882f466b270fdf144534da68e2d354649ba..044efe8aef014e0c41af2a67459b9b434490a004 100644 (file)
@@ -607,7 +607,8 @@ def email_from_str(value):
 
 
 def email_to_str(value):
-    return str(email)
+    return str(value)
+