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

Tres Seaver tseaver at zope.com
Fri Feb 11 17:07:09 EST 2005


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

Modified Files:
      Tag: CMF-1_4-branch
	test_RegistrationTool.py 
Log Message:
 - Include unit test for #322.


=== Products/CMFDefault/tests/test_RegistrationTool.py 1.2.26.1 => 1.2.26.2 ===
--- Products/CMFDefault/tests/test_RegistrationTool.py:1.2.26.1	Fri May 14 17:44:14 2004
+++ Products/CMFDefault/tests/test_RegistrationTool.py	Fri Feb 11 17:07:08 2005
@@ -34,6 +34,21 @@
         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 ):
 
         tool = self._makeOne().__of__( self.root )



More information about the CMF-checkins mailing list