[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Workflow/tests - testWorkflowAction.py:1.1.2.7
Tres Seaver
tseaver@zope.com
Tue, 5 Mar 2002 06:36:27 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow/tests
In directory cvs.zope.org:/tmp/cvs-serv6603/tests
Modified Files:
Tag: Zope-3x-branch
testWorkflowAction.py
Log Message:
- Introduce intermediate interface, IWorkflowActionEvent.
=== Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowAction.py 1.1.2.6 => 1.1.2.7 ===
def testInterface( self ):
from Zope.App.Workflow.IWorkflowEvents import IWorkflowEvent
+ from Zope.App.Workflow.IWorkflowEvents import IWorkflowActionEvent
from Zope.App.Workflow.IWorkflowEvents \
import IWorkflowActionCreatedEvent
from Zope.App.Workflow.WorkflowEvents import WorkflowActionCreatedEvent
from Interface import verify
verify( IWorkflowEvent, WorkflowActionCreatedEvent )
+ verify( IWorkflowActionEvent, WorkflowActionCreatedEvent )
verify( IWorkflowActionCreatedEvent, WorkflowActionCreatedEvent )
def _getEventClass( self ):
@@ -31,12 +33,16 @@
class WorkflowActionAssignedEventTest( unittest.TestCase, WorkflowActionTestsBase ):
def testInterface( self ):
+ from Zope.App.Workflow.IWorkflowEvents import IWorkflowEvent
+ from Zope.App.Workflow.IWorkflowEvents import IWorkflowActionEvent
from Zope.App.Workflow.IWorkflowEvents \
import IWorkflowActionAssignedEvent
from Zope.App.Workflow.WorkflowEvents \
import WorkflowActionAssignedEvent
from Interface import verify
+ verify( IWorkflowEvent, WorkflowActionAssignedEvent )
+ verify( IWorkflowActionEvent, WorkflowActionAssignedEvent )
verify( IWorkflowActionAssignedEvent, WorkflowActionAssignedEvent )
def _getEventClass( self ):
@@ -47,10 +53,14 @@
class WorkflowActionBegunEventTest( unittest.TestCase, WorkflowActionTestsBase ):
def testInterface( self ):
+ from Zope.App.Workflow.IWorkflowEvents import IWorkflowEvent
+ from Zope.App.Workflow.IWorkflowEvents import IWorkflowActionEvent
from Zope.App.Workflow.IWorkflowEvents import IWorkflowActionBegunEvent
from Zope.App.Workflow.WorkflowEvents import WorkflowActionBegunEvent
from Interface import verify
+ verify( IWorkflowEvent, WorkflowActionBegunEvent )
+ verify( IWorkflowActionEvent, WorkflowActionBegunEvent )
verify( IWorkflowActionBegunEvent, WorkflowActionBegunEvent )
def _getEventClass( self ):
@@ -62,13 +72,15 @@
def testInterface(self):
from Zope.App.Workflow.IWorkflowEvents import IWorkflowEvent
+ from Zope.App.Workflow.IWorkflowEvents import IWorkflowActionEvent
from Zope.App.Workflow.IWorkflowEvents \
- import IWorkflowActionSuspendedEvent
+ import IWorkflowActionSuspendedEvent
from Zope.App.Workflow.WorkflowEvents \
import WorkflowActionSuspendedEvent
from Interface import verify
verify( IWorkflowEvent, WorkflowActionSuspendedEvent )
+ verify( IWorkflowActionEvent, WorkflowActionSuspendedEvent )
verify( IWorkflowActionSuspendedEvent, WorkflowActionSuspendedEvent )
def _getEventClass( self ):
@@ -81,6 +93,7 @@
def testInterface(self):
from Zope.App.Workflow.IWorkflowEvents import IWorkflowEvent
+ from Zope.App.Workflow.IWorkflowEvents import IWorkflowActionEvent
from Zope.App.Workflow.IWorkflowEvents \
import IWorkflowActionCompletedEvent
from Zope.App.Workflow.WorkflowEvents \
@@ -88,6 +101,7 @@
from Interface import verify
verify(IWorkflowEvent, WorkflowActionCompletedEvent)
+ verify(IWorkflowActionEvent, WorkflowActionCompletedEvent)
verify(IWorkflowActionCompletedEvent, WorkflowActionCompletedEvent)
def _getEventClass( self ):
@@ -100,6 +114,7 @@
def testInterface(self):
from Zope.App.Workflow.IWorkflowEvents import IWorkflowEvent
+ from Zope.App.Workflow.IWorkflowEvents import IWorkflowActionEvent
from Zope.App.Workflow.IWorkflowEvents \
import IWorkflowActionTerminatedEvent
from Zope.App.Workflow.WorkflowEvents \
@@ -107,6 +122,7 @@
from Interface import verify
verify(IWorkflowEvent, WorkflowActionTerminatedEvent)
+ verify(IWorkflowActionEvent, WorkflowActionTerminatedEvent)
verify(IWorkflowActionTerminatedEvent, WorkflowActionTerminatedEvent)
def _getEventClass( self ):
@@ -118,6 +134,7 @@
def testInterface(self):
from Zope.App.Workflow.IWorkflowEvents import IWorkflowEvent
+ from Zope.App.Workflow.IWorkflowEvents import IWorkflowActionEvent
from Zope.App.Workflow.IWorkflowEvents \
import IWorkflowActionExceptionEvent
from Zope.App.Workflow.WorkflowEvents \
@@ -125,6 +142,7 @@
from Interface import verify
verify(IWorkflowEvent, WorkflowActionExceptionEvent)
+ verify(IWorkflowActionEvent, WorkflowActionExceptionEvent)
verify(IWorkflowActionExceptionEvent, WorkflowActionExceptionEvent)
def _getEventClass( self ):