[CMF-checkins] CVS: Products/CMFCore/tests -
test_RegistrationTool.py:1.4.14.1
Yvo Schubbe
y.2004_ at wcm-solutions.de
Wed Sep 29 13:12:56 EDT 2004
Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv6340/CMFCore/tests
Modified Files:
Tag: CMF-1_5-branch
test_RegistrationTool.py
Log Message:
- excluded 'OQ0Il1' from generated passwords
=== Products/CMFCore/tests/test_RegistrationTool.py 1.4 => 1.4.14.1 ===
--- Products/CMFCore/tests/test_RegistrationTool.py:1.4 Mon Apr 26 08:14:17 2004
+++ Products/CMFCore/tests/test_RegistrationTool.py Wed Sep 29 13:12:56 2004
@@ -4,16 +4,24 @@
Zope.startup()
from Interface.Verify import verifyClass
-from Products.CMFCore.RegistrationTool import RegistrationTool
-
class RegistrationToolTests(TestCase):
+ def _makeOne(self):
+ from Products.CMFCore.RegistrationTool import RegistrationTool
+
+ return RegistrationTool()
+
+ def test_generatePassword(self):
+ rtool = self._makeOne()
+ self.failUnless( len( rtool.generatePassword() ) >= 5 )
+
def test_interface(self):
from Products.CMFCore.interfaces.portal_registration \
import portal_registration as IRegistrationTool
from Products.CMFCore.interfaces.portal_actions \
import ActionProvider as IActionProvider
+ from Products.CMFCore.RegistrationTool import RegistrationTool
verifyClass(IRegistrationTool, RegistrationTool)
verifyClass(IActionProvider, RegistrationTool)
More information about the CMF-checkins
mailing list