[CMF-checkins] CVS: Products/CMFCore/tests - test_ActionInformation.py:1.16

Tres Seaver tseaver at palladion.com
Sun Jun 26 07:10:10 EDT 2005


Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv22167/CMFCore/tests

Modified Files:
	test_ActionInformation.py 
Log Message:
 - Forward-port fix for ActionInformation.setActionExpression from 1.5 branch.


=== Products/CMFCore/tests/test_ActionInformation.py 1.15 => 1.16 ===
--- Products/CMFCore/tests/test_ActionInformation.py:1.15	Fri Jun 24 12:09:01 2005
+++ Products/CMFCore/tests/test_ActionInformation.py	Sun Jun 26 07:10:09 2005
@@ -293,6 +293,13 @@
         self.assertEqual(ai.getCategory(), 'folder')
         self.assertEqual(ai.getPermissions(), ())
 
+    def test_setActionExpression_with_string_prefix(self):
+        from Products.CMFCore.Expression import Expression
+        ai = self._makeOne(id='view', category='folder')
+        ai.setActionExpression('string:blah')
+        self.failUnless(isinstance(ai.action,Expression))
+        self.assertEqual(ai.getActionExpression(), 'string:blah')
+
     def test_construction_with_Expressions(self):
         ai = self._makeOne( id='view',
                             title='View',



More information about the CMF-checkins mailing list