[CMF-checkins] CVS: CMF/CMFCore/tests - test_WorkflowTool.py:1.3.4.2
Florent Guillaume
fg@nuxeo.com
Sun, 4 Aug 2002 11:27:06 -0400
Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv17570
Modified Files:
Tag: CMF-1_3-branch
test_WorkflowTool.py
Log Message:
Merged additional test from HEAD.
=== CMF/CMFCore/tests/test_WorkflowTool.py 1.3.4.1 => 1.3.4.2 ===
portal_type = 'DummyContentPT'
_isPortalContent = 1
+class DummyNotReallyContent( Dummy ):
+
+ meta_type = 'DummyContentPT'
+
class DummyTypeInfo( Dummy ):
pass
@@ -187,6 +191,14 @@
self.assertEquals( len( tool.getDefaultChainFor( None ) ), 0 )
self.assertEquals( len( tool.getChainFor( None ) ), 0 )
self.assertEquals( len( tool.getCatalogVariablesFor( None ) ), 0 )
+
+ def test_notReallyContent( self ):
+
+ tool = self._makeWithTypesAndChain()
+ dummy = DummyNotReallyContent( 'doh' )
+ self.assertEquals( len( tool.getDefaultChainFor( dummy ) ), 0 )
+ self.assertEquals( len( tool.getChainFor( dummy ) ), 0 )
+ self.assertEquals( len( tool.getCatalogVariablesFor( dummy ) ), 0 )
def test_content_default_chain( self ):