From 4fa920145e8f941ad889fa7f991800c499377e07 Mon Sep 17 00:00:00 2001 From: philipp Date: Tue, 2 Feb 2016 21:09:04 +0000 Subject: [PATCH 1/1] Fixup for E-Mail converter. git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2431 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- tests/test_wrvalidators.py | 3 +-- wrpylib/wrvalidators.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_wrvalidators.py b/tests/test_wrvalidators.py index b12962b..f26c5b8 100644 --- a/tests/test_wrvalidators.py +++ b/tests/test_wrvalidators.py @@ -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): diff --git a/wrpylib/wrvalidators.py b/wrpylib/wrvalidators.py index 0a18088..044efe8 100644 --- a/wrpylib/wrvalidators.py +++ b/wrpylib/wrvalidators.py @@ -607,7 +607,8 @@ def email_from_str(value): def email_to_str(value): - return str(email) + return str(value) + -- 2.30.2