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

Tres Seaver tseaver@zope.com
Tue, 15 Apr 2003 12:47:03 -0400


Update of /cvs-repository/CMF/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv18708/CMFDefault/tests

Modified Files:
      Tag: tseaver-reg_properties-branch
	test_RegistrationTool.py 
Log Message:
 - Sketch TTW-configurable registration properties.

=== CMF/CMFDefault/tests/test_RegistrationTool.py 1.2 => 1.2.24.1 ===
--- CMF/CMFDefault/tests/test_RegistrationTool.py:1.2	Mon Jan  6 16:07:26 2003
+++ CMF/CMFDefault/tests/test_RegistrationTool.py	Tue Apr 15 12:47:02 2003
@@ -7,19 +7,30 @@
     # for Zope versions before 2.6.0
     from Interface import verify_class_implementation as verifyClass
 
-from Products.CMFDefault.RegistrationTool import RegistrationTool
-
 
 class RegistrationToolTests(TestCase):
 
+    def _getTargetClass(self):
+        from Products.CMFDefault.RegistrationTool import RegistrationTool
+        return RegistrationTool
+
+    def _makeOne(self, *args, **kw):
+        return self._getTargetClass()(*args, **kw )
+
     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
 
-        verifyClass(IRegistrationTool, RegistrationTool)
-        verifyClass(IActionProvider, RegistrationTool)
+        verifyClass(IRegistrationTool, self._getTargetClass())
+        verifyClass(IActionProvider, self._getTargetClass())
+
+    def test_minPasswordLength(self):
+
+        tool = self._makeOne()
+
 
 
 def test_suite():