Author: ianb
Date: 2008-11-14 16:43:30 -0700 (Fri, 14 Nov 2008)
New Revision: 3659
Modified:
FormEncode/trunk/formencode/validators.py
Log:
add a unicode Email doctest
Modified: FormEncode/trunk/formencode/validators.py
===================================================================
--- FormEncode/trunk/formencode/validators.py 2008-11-14 23:38:17 UTC (rev
3658)
+++ FormEncode/trunk/formencode/validators.py 2008-11-14 23:43:30 UTC (rev
3659)
@@ -1298,6 +1298,8 @@
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'[EMAIL PROTECTED]')
+ u'[EMAIL PROTECTED]'
>>> e = Email(not_empty=False)
>>> e.to_python('')
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs