1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
From: "drnlmuller+debian@gmail.com" <drnlmuller+debian@gmail.com>
Date: Tue, 14 Jun 2016 14:40:12 +0200
Subject: 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.
Patch-Name: 0003-Remove-tests-from-test_email-that-require-dns.patch
Forwarded: not-needed
---
tests/test_email.py | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/tests/test_email.py b/tests/test_email.py
index ac40b7a..00bfb3d 100644
--- a/tests/test_email.py
+++ b/tests/test_email.py
@@ -64,19 +64,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(
- 'foo@yandex.com'), 'foo@yandex.com')
-
- def test_cyrillic_email(self):
- return
- # NOTE test failing because domain is expired. Need a new example domain
- self.assertEqual(self.validator.to_python(
- 'me@письмо.рф'), 'me@письмо.рф')
|