[CMF-checkins] CVS: Products/CMFCore/tests - test_WorkflowTool.py:1.14

Tres Seaver tseaver at palladion.com
Tue Jul 5 23:28:56 EDT 2005


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

Modified Files:
	test_WorkflowTool.py 
Log Message:
 - Forward-port fix for Collector #360 from 1.5 branch.


=== Products/CMFCore/tests/test_WorkflowTool.py 1.13 => 1.14 ===
--- Products/CMFCore/tests/test_WorkflowTool.py:1.13	Wed Jun 15 10:17:38 2005
+++ Products/CMFCore/tests/test_WorkflowTool.py	Tue Jul  5 23:28:55 2005
@@ -288,6 +288,21 @@
         self.failUnless( 'dummy' in vars.keys() )
         self.failUnless( 'a: dummy' in vars.values() )
 
+    def test_getActionsFor( self ):
+
+        import warnings
+
+        # Collector #360: Test AtttributeError in deprecated API :(
+        tool = self._makeWithTypesAndChain()
+        dummy = DummyContent( 'dummy' )
+
+        warnings.filterwarnings("ignore", category=DeprecationWarning)
+        try:
+            actions = tool.getActionsFor( dummy )
+        finally:
+            warnings.resetwarnings()
+        self.assertEqual( len( actions ), 0 )
+
     def test_getInfoFor( self ):
 
         tool = self._makeWithTypesAndChain()



More information about the CMF-checkins mailing list