incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1491126 - /incubator/public/trunk/tools/tests/test_emails.py
Date Sun, 09 Jun 2013 02:45:27 GMT
Author: adc
Date: Sun Jun  9 02:45:26 2013
New Revision: 1491126

URL: http://svn.apache.org/r1491126
Log:
Some emails can be malformed

Modified:
    incubator/public/trunk/tools/tests/test_emails.py

Modified: incubator/public/trunk/tools/tests/test_emails.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/tools/tests/test_emails.py?rev=1491126&r1=1491125&r2=1491126&view=diff
==============================================================================
--- incubator/public/trunk/tools/tests/test_emails.py (original)
+++ incubator/public/trunk/tools/tests/test_emails.py Sun Jun  9 02:45:26 2013
@@ -25,6 +25,12 @@ from asf.utils.test import ensure_creden
 def test_canonical_email_address():
     assert 'jim@jagunet.com' == canonical_email_address('jim@jaguNET.com')
 
+    try:
+        canonical_email_address('a@B.com,c@D.com')
+        assert False, 'malformed email addresses should generate a value error'
+    except ValueError:
+        pass
+
 
 def test_is_apache_email_address():
     assert is_apache_email_address('adc@ApAcHe.org')



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message