[CMF-checkins] CVS: CMF/CMFCore/tests - test_PortalFolder.py:1.22.2.1 test_TypesTool.py:1.22.2.3

Yvo Schubbe schubbe@web.de
Sat, 28 Jun 2003 10:29:55 -0400


Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv4210/CMFCore/tests

Modified Files:
      Tag: yuppie-ti_aliases-branch
	test_PortalFolder.py test_TypesTool.py 
Log Message:
- made PortalFolder's 'mkdir' hook an alias

=== CMF/CMFCore/tests/test_PortalFolder.py 1.22 => 1.22.2.1 ===
--- CMF/CMFCore/tests/test_PortalFolder.py:1.22	Wed Jun 11 07:11:19 2003
+++ CMF/CMFCore/tests/test_PortalFolder.py	Sat Jun 28 10:29:54 2003
@@ -281,14 +281,8 @@
         self.assertEqual( test.simple.Title(), 'Simple' )
 
         # Now, test overridden behavior
-        types_tool.Folder.addAction( id = 'mkdir'
-                                   , name = 'MKDIR handler'
-                                   , action = 'string:grabbed'
-                                   , condition = ''
-                                   , permission = ''
-                                   , category = 'folder'
-                                   , visible = 0
-                                   )
+        types_tool.Folder.setMethodAliases( {'mkdir': 'grabbed'} )
+
         class Grabbed:
 
             _grabbed_with = None


=== CMF/CMFCore/tests/test_TypesTool.py 1.22.2.2 => 1.22.2.3 ===
--- CMF/CMFCore/tests/test_TypesTool.py:1.22.2.2	Wed Jun 25 05:28:39 2003
+++ CMF/CMFCore/tests/test_TypesTool.py	Sat Jun 28 10:29:54 2003
@@ -335,7 +335,7 @@
         self.assertEqual(ti._aliases, wanted)
 
     def test_MethodAliases_special_migration(self):
-        wanted = { 'view':('dummy_view',), }
+        wanted = { 'view':('dummy_view',), 'mkdir':('dummy_mkdir',) }
 
         # use old FTI Data
         ti = self._makeInstanceByFTIData(FTIDATA_CMF14_SPECIAL)