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

Tres Seaver tseaver at zope.com
Fri Feb 11 17:08:38 EST 2005


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

Modified Files:
	test_RegistrationTool.py 
Log Message:
 - Forward port fix for CMF Collector #322.


=== Products/CMFDefault/tests/test_RegistrationTool.py 1.5 => 1.6 ===
--- Products/CMFDefault/tests/test_RegistrationTool.py:1.5	Fri May 14 18:16:30 2004
+++ Products/CMFDefault/tests/test_RegistrationTool.py	Fri Feb 11 17:08:37 2005
@@ -31,6 +31,20 @@
         verifyClass(IRegistrationTool, self._getTargetClass())
         verifyClass(IActionProvider, self._getTargetClass())
 
+    def test_testPropertiesValidity_email_with_plus( self ):
+
+        # CMF Collector #322
+
+        tool = self._makeOne().__of__( self.root )
+        self.root.portal_membership = FauxMembershipTool()
+
+        props = { 'email' : 'user+site at example.com'
+                , 'username' : 'username'
+                }
+
+        result = tool.testPropertiesValidity( props, None )
+
+        self.failUnless( result is None )
 
     def test_testPropertiesValidity_new_invalid_email( self ):
 



More information about the CMF-checkins mailing list