[Python-modules-commits] [python-formencode] 07/11: Remove tests from test_email that require dns.

Neil Muller drnlmza-guest at moszumanska.debian.org
Tue Jun 14 13:00:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

drnlmza-guest pushed a commit to branch master
in repository python-formencode.

commit 5b74f4faf6aa49dd2d1e8d4a034ea776a65ef8c7
Author: Neil <Neil Muller drnlmuller+debian at gmail.com>
Date:   Tue Jun 14 14:40:12 2016 +0200

    Remove tests from test_email that require dns.
    
    Some of the new tests in test_email also require dns. This patch
    removes them so the build does not require network access.
---
 formencode/tests/test_email.py | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/formencode/tests/test_email.py b/formencode/tests/test_email.py
index 3ebf120..2305454 100644
--- a/formencode/tests/test_email.py
+++ b/formencode/tests/test_email.py
@@ -65,17 +65,3 @@ class TestEmail(unittest.TestCase):
 
         for email, expected in valid_email_addresses:
             self.assertEqual(self.validate(email), expected)
-
-
-class TestUnicodeEmailWithResolveDomain(unittest.TestCase):
-
-    def setUp(self):
-        self.validator = Email(resolve_domain=True)
-
-    def test_unicode_ascii_subgroup(self):
-        self.assertEqual(self.validator.to_python(
-            u'foo at yandex.com'), 'foo at yandex.com')
-
-    def test_cyrillic_email(self):
-        self.assertEqual(self.validator.to_python(
-            u'me@письмо.рф'), u'me@письмо.рф')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-formencode.git



More information about the Python-modules-commits mailing list