[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/tests - test_workflowaction.py:1.4 test_workflowprocessinstance.py:1.4 test_workflowservice.py:1.4
Albertas Agejevas
alga@codeworks.lt
Thu, 13 Mar 2003 13:49:43 -0500
Update of /cvs-repository/Zope3/src/zope/app/workflow/tests
In directory cvs.zope.org:/tmp/cvs-serv1411/src/zope/app/workflow/tests
Modified Files:
test_workflowaction.py test_workflowprocessinstance.py
test_workflowservice.py
Log Message:
An unexpected raid by the Whitespace Police.
Other than fixes of nonconforming whitespace, just a couple of $Id$
docstrings has been added.
=== Zope3/src/zope/app/workflow/tests/test_workflowaction.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/workflow/tests/test_workflowaction.py:1.3 Sun Feb 2 18:24:47 2003
+++ Zope3/src/zope/app/workflow/tests/test_workflowaction.py Thu Mar 13 13:49:12 2003
@@ -11,22 +11,25 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""
+$Id$
+"""
import unittest
class WorkflowActionTestsBase:
- def test_getAction( self ):
+ def test_getAction(self):
ACTION = []
- event = self._makeOne( ACTION )
- self.assertEqual( event.getAction(), ACTION )
+ event = self._makeOne(ACTION)
+ self.assertEqual(event.getAction(), ACTION)
- def _makeOne( self, *args, **kw ):
+ def _makeOne(self, *args, **kw):
- return self._getEventClass()( *args, **kw )
+ return self._getEventClass()(*args, **kw)
-class WorkflowActionCreatedTests( unittest.TestCase, WorkflowActionTestsBase ):
+class WorkflowActionCreatedTests(unittest.TestCase, WorkflowActionTestsBase):
- def testInterface( self ):
+ def testInterface(self):
from zope.app.interfaces.workflow import IWorkflowEvent
from zope.app.interfaces.workflow import IWorkflowActionEvent
from zope.app.interfaces.workflow \
@@ -34,19 +37,19 @@
from zope.app.workflow.workflowevents import WorkflowActionCreatedEvent
from zope.interface.verify import verifyClass
- verifyClass( IWorkflowEvent, WorkflowActionCreatedEvent )
- verifyClass( IWorkflowActionEvent, WorkflowActionCreatedEvent )
- verifyClass( IWorkflowActionCreatedEvent, WorkflowActionCreatedEvent )
+ verifyClass(IWorkflowEvent, WorkflowActionCreatedEvent)
+ verifyClass(IWorkflowActionEvent, WorkflowActionCreatedEvent)
+ verifyClass(IWorkflowActionCreatedEvent, WorkflowActionCreatedEvent)
- def _getEventClass( self ):
+ def _getEventClass(self):
from zope.app.workflow.workflowevents import WorkflowActionCreatedEvent
return WorkflowActionCreatedEvent
-class WorkflowActionAssignedEventTest( unittest.TestCase
- , WorkflowActionTestsBase ):
+class WorkflowActionAssignedEventTest(unittest.TestCase
+ , WorkflowActionTestsBase):
- def testInterface( self ):
+ def testInterface(self):
from zope.app.interfaces.workflow import IWorkflowEvent
from zope.app.interfaces.workflow import IWorkflowActionEvent
from zope.app.interfaces.workflow \
@@ -55,34 +58,34 @@
import WorkflowActionAssignedEvent
from zope.interface.verify import verifyClass
- verifyClass( IWorkflowEvent, WorkflowActionAssignedEvent )
- verifyClass( IWorkflowActionEvent, WorkflowActionAssignedEvent )
- verifyClass( IWorkflowActionAssignedEvent, WorkflowActionAssignedEvent )
+ verifyClass(IWorkflowEvent, WorkflowActionAssignedEvent)
+ verifyClass(IWorkflowActionEvent, WorkflowActionAssignedEvent)
+ verifyClass(IWorkflowActionAssignedEvent, WorkflowActionAssignedEvent)
- def _getEventClass( self ):
+ def _getEventClass(self):
from zope.app.workflow.workflowevents import WorkflowActionAssignedEvent
return WorkflowActionAssignedEvent
-class WorkflowActionBegunEventTest( unittest.TestCase, WorkflowActionTestsBase ):
+class WorkflowActionBegunEventTest(unittest.TestCase, WorkflowActionTestsBase):
- def testInterface( self ):
+ def testInterface(self):
from zope.app.interfaces.workflow import IWorkflowEvent
from zope.app.interfaces.workflow import IWorkflowActionEvent
from zope.app.interfaces.workflow import IWorkflowActionBegunEvent
from zope.app.workflow.workflowevents import WorkflowActionBegunEvent
from zope.interface.verify import verifyClass
- verifyClass( IWorkflowEvent, WorkflowActionBegunEvent )
- verifyClass( IWorkflowActionEvent, WorkflowActionBegunEvent )
- verifyClass( IWorkflowActionBegunEvent, WorkflowActionBegunEvent )
+ verifyClass(IWorkflowEvent, WorkflowActionBegunEvent)
+ verifyClass(IWorkflowActionEvent, WorkflowActionBegunEvent)
+ verifyClass(IWorkflowActionBegunEvent, WorkflowActionBegunEvent)
- def _getEventClass( self ):
+ def _getEventClass(self):
from zope.app.workflow.workflowevents import WorkflowActionBegunEvent
return WorkflowActionBegunEvent
-class WorkflowActionSuspendedTests( unittest.TestCase, WorkflowActionTestsBase ):
+class WorkflowActionSuspendedTests(unittest.TestCase, WorkflowActionTestsBase):
def testInterface(self):
from zope.app.interfaces.workflow import IWorkflowEvent
@@ -93,11 +96,11 @@
import WorkflowActionSuspendedEvent
from zope.interface.verify import verifyClass
- verifyClass( IWorkflowEvent, WorkflowActionSuspendedEvent )
- verifyClass( IWorkflowActionEvent, WorkflowActionSuspendedEvent )
- verifyClass( IWorkflowActionSuspendedEvent, WorkflowActionSuspendedEvent )
+ verifyClass(IWorkflowEvent, WorkflowActionSuspendedEvent)
+ verifyClass(IWorkflowActionEvent, WorkflowActionSuspendedEvent)
+ verifyClass(IWorkflowActionSuspendedEvent, WorkflowActionSuspendedEvent)
- def _getEventClass( self ):
+ def _getEventClass(self):
from zope.app.workflow.workflowevents \
import WorkflowActionSuspendedEvent
return WorkflowActionSuspendedEvent
@@ -118,7 +121,7 @@
verifyClass(IWorkflowActionEvent, WorkflowActionCompletedEvent)
verifyClass(IWorkflowActionCompletedEvent, WorkflowActionCompletedEvent)
- def _getEventClass( self ):
+ def _getEventClass(self):
from zope.app.workflow.workflowevents \
import WorkflowActionCompletedEvent
return WorkflowActionCompletedEvent
@@ -139,12 +142,12 @@
verifyClass(IWorkflowActionEvent, WorkflowActionExceptionEvent)
verifyClass(IWorkflowActionExceptionEvent, WorkflowActionExceptionEvent)
- def _getEventClass( self ):
+ def _getEventClass(self):
from zope.app.workflow.workflowevents \
import WorkflowActionExceptionEvent
return WorkflowActionExceptionEvent
- def _getEventClass( self ):
+ def _getEventClass(self):
from zope.app.workflow.workflowevents \
import WorkflowActionExceptionEvent
return WorkflowActionExceptionEvent
@@ -154,15 +157,15 @@
# DISABLED BECAUSE OUTDATED
suite = unittest.TestSuite()
- #for klass in ( WorkflowActionCreatedTests
+ #for klass in (WorkflowActionCreatedTests
# , WorkflowActionAssignedEventTest
# , WorkflowActionBegunEventTest
# , WorkflowActionSuspendedTests
# , WorkflowActionCompletedEvent
# , WorkflowActionExceptionEvent
- # ):
+ # ):
# suite.addTest(
- # unittest.defaultTestLoader.loadTestsFromTestCase( klass ) )
+ # unittest.defaultTestLoader.loadTestsFromTestCase(klass))
return suite
=== Zope3/src/zope/app/workflow/tests/test_workflowprocessinstance.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/workflow/tests/test_workflowprocessinstance.py:1.3 Sun Feb 2 18:24:47 2003
+++ Zope3/src/zope/app/workflow/tests/test_workflowprocessinstance.py Thu Mar 13 13:49:12 2003
@@ -14,16 +14,16 @@
import unittest
-class WorkflowProcessInstanceTests( unittest.TestCase ):
+class WorkflowProcessInstanceTests(unittest.TestCase):
- def testInterface( self ):
+ def testInterface(self):
from zope.interface.verify import verifyClass
from zope.app.interfaces.workflow \
import IWorkflowProcessInstance
from zope.app.workflow.workflowprocessinstance \
import WorkflowProcessInstance
- verifyClass( IWorkflowProcessInstance, WorkflowProcessInstance )
+ verifyClass(IWorkflowProcessInstance, WorkflowProcessInstance)
def test_suite():
@@ -32,7 +32,7 @@
suite = unittest.TestSuite()
#suite.addTest(
# unittest.defaultTestLoader.loadTestsFromTestCase(
- # WorkflowProcessInstanceTests ) )
+ # WorkflowProcessInstanceTests))
return suite
=== Zope3/src/zope/app/workflow/tests/test_workflowservice.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/workflow/tests/test_workflowservice.py:1.3 Sun Feb 2 18:24:47 2003
+++ Zope3/src/zope/app/workflow/tests/test_workflowservice.py Thu Mar 13 13:49:12 2003
@@ -11,6 +11,10 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
+"""
+$Id$
+"""
+
import unittest
from zope.interface import Interface
@@ -20,37 +24,37 @@
class dummyEngine:
__implements__ = engineInterface
- def listActions( self ):
+ def listActions(self):
return [0, 1, 2]
-class WorkflowServiceTests( unittest.TestCase ):
+class WorkflowServiceTests(unittest.TestCase):
- def createService( self ):
+ def createService(self):
from zope.app.workflow.workflowservice import WorkflowService
service = WorkflowService()
return service
- def testInterface( self ):
+ def testInterface(self):
from zope.app.interfaces.workflow import IWorkflowService
from zope.app.workflow.workflowservice import WorkflowService
from zope.interface.verify import verifyClass
- verifyClass( IWorkflowService, WorkflowService )
+ verifyClass(IWorkflowService, WorkflowService)
- def testGetEngine( self ):
+ def testGetEngine(self):
service = self.createService()
self.assertEqual(service.getEngine(engineInterface), [])
- def testAddEngine( self ):
+ def testAddEngine(self):
service = self.createService()
engine = dummyEngine()
service.addEngine(engine)
self.assertEqual(service.getEngine(engineInterface), [engine])
- def testRemoveEngine( self ):
+ def testRemoveEngine(self):
service = self.createService()
engine = dummyEngine()
service.addEngine(engine)
@@ -58,7 +62,7 @@
self.assertEqual(service.getEngine(engineInterface), [])
- def testListWorkflowEngineActions( self ):
+ def testListWorkflowEngineActions(self):
service = self.createService()
engine = dummyEngine()
service.addEngine(engine)
@@ -72,7 +76,7 @@
suite = unittest.TestSuite()
#suite.addTest(
# unittest.defaultTestLoader.loadTestsFromTestCase(
- # WorkflowServiceTests ) )
+ # WorkflowServiceTests))
return suite
if __name__ == '__main__':