[CMF-checkins] CVS: Products/CMFDefault/tests -
test_RegistrationTool.py:1.7
Jens Vagelpohl
jens at dataflake.org
Mon Mar 7 16:51:14 EST 2005
Update of /cvs-repository/Products/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv27050/CMFDefault/tests
Modified Files:
test_RegistrationTool.py
Log Message:
- CMFDefault.RegistrationTool: Allow email addresses with an underscore
as the last element of the alias part.
(http://www.zope.org/Collectors/CMF/326)
=== Products/CMFDefault/tests/test_RegistrationTool.py 1.6 => 1.7 ===
--- Products/CMFDefault/tests/test_RegistrationTool.py:1.6 Fri Feb 11 17:08:37 2005
+++ Products/CMFDefault/tests/test_RegistrationTool.py Mon Mar 7 16:51:14 2005
@@ -46,6 +46,19 @@
self.failUnless( result is None )
+ def test_testPropertiesValidity_email_with_underscore( self ):
+ # Test for collector item 326: Email alias ending w/underscore
+ tool = self._makeOne().__of__( self.root )
+ self.root.portal_membership = FauxMembershipTool()
+
+ props = { 'email' : 'username_ at example.com'
+ , 'username' : 'username'
+ }
+
+ result = tool.testPropertiesValidity( props, None )
+
+ self.failUnless( result is None )
+
def test_testPropertiesValidity_new_invalid_email( self ):
tool = self._makeOne().__of__( self.root )
More information about the CMF-checkins
mailing list