[Python-modules-commits] [python-formencode] 03/11: remove-dns-tests.diff

Neil Muller drnlmza-guest at moszumanska.debian.org
Tue Jun 14 13:00:07 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 b117d46199ed78514fe16222608f069702cbcf0e
Author: Stefano Rivera <stefanor at debian.org>
Date:   Sun Oct 11 22:20:17 2015 +0200

    remove-dns-tests.diff
    
    Tests that require network (DNS) access
    Patch-Name: remove-dns-tests.diff
---
 formencode/validators.py | 30 ------------------------------
 1 file changed, 30 deletions(-)

diff --git a/formencode/validators.py b/formencode/validators.py
index c332ec9..cfba7c8 100644
--- a/formencode/validators.py
+++ b/formencode/validators.py
@@ -1288,20 +1288,6 @@ class Email(FancyValidator):
         'nobody at xn--m7r7ml7t24h.com'
         >>> e.to_python('o*reilly at test.com')
         'o*reilly at test.com'
-        >>> e = Email(resolve_domain=True)
-        >>> e.resolve_domain
-        True
-        >>> e.to_python('doesnotexist at colorstudy.com')
-        'doesnotexist at colorstudy.com'
-        >>> e.to_python('test at nyu.edu')
-        'test at nyu.edu'
-        >>> # NOTE: If you do not have dnspython installed this example won't work:
-        >>> e.to_python('test at thisdomaindoesnotexistithinkforsure.com')
-        Traceback (most recent call last):
-            ...
-        Invalid: The domain of the email address does not exist (the portion after the @: thisdomaindoesnotexistithinkforsure.com)
-        >>> e.to_python(u'test at google.com')
-        u'test at google.com'
         >>> e = Email(not_empty=False)
         >>> e.to_python('')
 
@@ -1429,22 +1415,6 @@ class URL(FancyValidator):
         Traceback (most recent call last):
             ...
         Invalid: That is not a valid URL
-        >>> u = URL(add_http=False, check_exists=True)
-        >>> u.to_python('http://google.com')
-        'http://google.com'
-        >>> u.to_python('google.com')
-        Traceback (most recent call last):
-            ...
-        Invalid: You must start your URL with http://, https://, etc
-        >>> u.to_python('http://www.formencode.org/does/not/exist/page.html')
-        Traceback (most recent call last):
-            ...
-        Invalid: The server responded that the page could not be found
-        >>> u.to_python('http://this.domain.does.not.exist.example.org/test.html')
-        ... # doctest: +ELLIPSIS
-        Traceback (most recent call last):
-            ...
-        Invalid: An error occured when trying to connect to the server: ...
 
     If you want to allow addresses without a TLD (e.g., ``localhost``) you can do::
 

-- 
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