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

Modified Files:
      Tag: CMF-1_5-branch
        test_ActionInformation.py 
Log Message:


 - Make ActionInfo.setActionExpression sane if passed a string
   which is already prefixed with "string;".

 - Wrap long lines.


=== Products/CMFCore/tests/test_ActionInformation.py 1.10.2.4 => 1.10.2.5 ===
--- Products/CMFCore/tests/test_ActionInformation.py:1.10.2.4   Thu Jun 23 
04:24:56 2005
+++ Products/CMFCore/tests/test_ActionInformation.py    Sun Jun 26 06:58:30 2005
@@ -185,6 +185,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',

_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins

Reply via email to