[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Workflow/tests - testWorkflowAction.py:1.1.2.5 testWorkflowActionAssignedEvent.py:NONE testWorkflowActionBegunEvent.py:NONE
Tres Seaver
tseaver@zope.com
Tue, 5 Mar 2002 06:02:41 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow/tests
In directory cvs.zope.org:/tmp/cvs-serv27161/tests
Modified Files:
Tag: Zope-3x-branch
testWorkflowAction.py
Removed Files:
Tag: Zope-3x-branch
testWorkflowActionAssignedEvent.py
testWorkflowActionBegunEvent.py
Log Message:
- Consolidate files.
=== Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowAction.py 1.1.2.4 => 1.1.2.5 ===
verify( IWorkflowActionCreatedEvent, WorkflowActionCreatedEvent )
+ def _makeOne( self, *args, **kw ):
+ from Zope.App.Workflow.WorkflowEvents import WorkflowActionCreatedEvent
+ return WorkflowActionCreatedEvent( *args, **kw )
+
+ def test_getAction( self ):
+ ACTION = []
+ event = self._makeOne( ACTION )
+ self.assertEqual( event.getAction(), ACTION )
+
+
class WorkflowActionSuspendedTests( unittest.TestCase ):
def testInterface(self):
@@ -25,7 +35,6 @@
verify( IWorkflowEvent, WorkflowActionSuspendedEvent )
verify( IWorkflowActionSuspendedEvent, WorkflowActionSuspendedEvent )
-
class WorkflowActionCompletedEvent(unittest.TestCase):
@@ -33,11 +42,32 @@
from Zope.App.Workflow.IWorkflowEvents import IWorkflowEvent
from Zope.App.Workflow.IWorkflowEvents \
import IWorkflowActionCompletedEvent
- from Zope.App.Workflow.WorkflowEvents import WorkflowActionCompletedEvent
+ from Zope.App.Workflow.WorkflowEvents \
+ import WorkflowActionCompletedEvent
from Interface import verify
verify(IWorkflowEvent, WorkflowActionCompletedEvent)
verify(IWorkflowActionCompletedEvent, WorkflowActionCompletedEvent)
+
+
+class WorkflowActionBegunEventTest( unittest.TestCase ):
+
+ def testInterface( self ):
+ from Zope.App.Workflow.IWorkflowEvents import IWorkflowActionBegunEvent
+ from Zope.App.Workflow.WorkflowEvents import WorkflowActionBegunEvent
+ from Interface import verify
+
+ verify( IWorkflowActionBegunEvent, WorkflowActionBegunEvent )
+
+
+class WorkflowActionAssignedEventTest( unittest.TestCase ):
+
+ def testInterface( self ):
+ from Zope.App.Workflow.IWorkflowEvents import IWorkflowActionAssignedEvent
+ from Zope.App.Workflow.WorkflowEvents import WorkflowActionAssignedEvent
+ from Interface import verify
+
+ verify( IWorkflowActionAssignedEvent, WorkflowActionAssignedEvent )
if __name__ == '__main__':
=== Removed File Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowActionAssignedEvent.py ===
=== Removed File Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowActionBegunEvent.py ===