[CMF-checkins] CVS: Products/CMFDefault/tests - test_RegistrationTool.py:1.5.6.2

Jens Vagelpohl jens at dataflake.org
Mon Mar 7 16:50:29 EST 2005


Update of /cvs-repository/Products/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv26958/CMFDefault/tests

Modified Files:
      Tag: CMF-1_5-branch
	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.5.6.1 => 1.5.6.2 ===
--- Products/CMFDefault/tests/test_RegistrationTool.py:1.5.6.1	Fri Feb 11 17:08:56 2005
+++ Products/CMFDefault/tests/test_RegistrationTool.py	Mon Mar  7 16:50:28 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