[CMF-checkins] CVS: CMF/CMFCore/tests - test_WorkflowTool.py:1.3.4.1
Florent Guillaume
fg@nuxeo.com
Sun, 4 Aug 2002 11:15:29 -0400
Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv14282/CMFCore/tests
Modified Files:
Tag: CMF-1_3-branch
test_WorkflowTool.py
Log Message:
Fixed WorkflowTool so that it doesn't pretend to workflow non-CMF
objects (Collector #19).
=== CMF/CMFCore/tests/test_WorkflowTool.py 1.3 => 1.3.4.1 ===
class DummyContent( Dummy ):
meta_type = 'DummyContent'
+ portal_type = 'DummyContentPT'
_isPortalContent = 1
class DummyTypeInfo( Dummy ):
@@ -92,11 +93,11 @@
class DummyTypesTool( SimpleItem ):
def listTypeInfo( self ):
- return [ DummyTypeInfo( 'DummyContent' ) ]
+ return [ DummyTypeInfo( 'DummyContentPT' ) ]
def getTypeInfo( self, ob ):
if getattr( ob, 'meta_type', None ) is 'DummyContent':
- return DummyTypeInfo( 'DummyContent' )
+ return DummyTypeInfo( 'DummyContentPT' )
return None
@@ -135,7 +136,7 @@
def _makeWithTypesAndChain( self ):
tool = self._makeWithTypes()
- tool.setChainForPortalTypes( ( 'DummyContent', ), ( 'a', 'b' ) )
+ tool.setChainForPortalTypes( ( 'DummyContentPT', ), ( 'a', 'b' ) )
return tool
def test_interface( self ):