[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/tests - test_workflowaction.py:1.1.2.2 test_workflowactivityinfo.py:1.1.2.2 test_workflowengine.py:1.1.2.2 test_workflowprocessinstance.py:1.1.2.2 test_workflowservice.py:1.1.2.2 test_workflowworkitem.py:1.1.2.2
Tim Peters
tim.one@comcast.net
Tue, 24 Dec 2002 21:21:27 -0500
Update of /cvs-repository/Zope3/src/zope/app/workflow/tests
In directory cvs.zope.org:/tmp/cvs-serv19240/src/zope/app/workflow/tests
Modified Files:
Tag: NameGeddon-branch
test_workflowaction.py test_workflowactivityinfo.py
test_workflowengine.py test_workflowprocessinstance.py
test_workflowservice.py test_workflowworkitem.py
Log Message:
Whitespace normalization, via Python's Tools/scripts/reindent.py. The
files are fixed-points of that script now. Fixed a few cases where
code relied on significant trailing whitespace (ouch).
=== Zope3/src/zope/app/workflow/tests/test_workflowaction.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/workflow/tests/test_workflowaction.py:1.1.2.1 Mon Dec 23 14:32:39 2002
+++ Zope3/src/zope/app/workflow/tests/test_workflowaction.py Tue Dec 24 21:20:56 2002
@@ -2,26 +2,26 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
import unittest
-
+
class WorkflowActionTestsBase:
def test_getAction( self ):
ACTION = []
event = self._makeOne( ACTION )
self.assertEqual( event.getAction(), ACTION )
-
+
def _makeOne( self, *args, **kw ):
-
+
return self._getEventClass()( *args, **kw )
class WorkflowActionCreatedTests( unittest.TestCase, WorkflowActionTestsBase ):
@@ -54,7 +54,7 @@
from zope.app.workflow.workflowevents \
import WorkflowActionAssignedEvent
from zope.interface.verify import verifyClass
-
+
verifyClass( IWorkflowEvent, WorkflowActionAssignedEvent )
verifyClass( IWorkflowActionEvent, WorkflowActionAssignedEvent )
verifyClass( IWorkflowActionAssignedEvent, WorkflowActionAssignedEvent )
@@ -72,7 +72,7 @@
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 )
=== Zope3/src/zope/app/workflow/tests/test_workflowactivityinfo.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/workflow/tests/test_workflowactivityinfo.py:1.1.2.1 Mon Dec 23 14:32:39 2002
+++ Zope3/src/zope/app/workflow/tests/test_workflowactivityinfo.py Tue Dec 24 21:20:56 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
import unittest
from zope.interface.verify import verifyClass
=== Zope3/src/zope/app/workflow/tests/test_workflowengine.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/workflow/tests/test_workflowengine.py:1.1.2.1 Mon Dec 23 14:32:39 2002
+++ Zope3/src/zope/app/workflow/tests/test_workflowengine.py Tue Dec 24 21:20:56 2002
@@ -2,18 +2,18 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
import unittest
-
+
class WorkflowEngineTests( unittest.TestCase ):
def testInterface( self ):
=== Zope3/src/zope/app/workflow/tests/test_workflowprocessinstance.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/workflow/tests/test_workflowprocessinstance.py:1.1.2.1 Mon Dec 23 14:32:39 2002
+++ Zope3/src/zope/app/workflow/tests/test_workflowprocessinstance.py Tue Dec 24 21:20:56 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
import unittest
=== Zope3/src/zope/app/workflow/tests/test_workflowservice.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/workflow/tests/test_workflowservice.py:1.1.2.1 Mon Dec 23 14:32:39 2002
+++ Zope3/src/zope/app/workflow/tests/test_workflowservice.py Tue Dec 24 21:20:56 2002
@@ -2,27 +2,27 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
import unittest
from zope.interface import Interface
class engineInterface(Interface):
pass
-
+
class dummyEngine:
__implements__ = engineInterface
def listActions( self ):
return [0, 1, 2]
-
+
class WorkflowServiceTests( unittest.TestCase ):
def createService( self ):
@@ -30,7 +30,7 @@
service = WorkflowService()
return service
-
+
def testInterface( self ):
from zope.app.interfaces.workflow import IWorkflowService
from zope.app.workflow.workflowservice import WorkflowService
@@ -64,7 +64,7 @@
service.addEngine(engine)
self.assertEqual(service.listWorkflowEngineActions(),
engine.listActions())
-
+
def test_suite():
=== Zope3/src/zope/app/workflow/tests/test_workflowworkitem.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/workflow/tests/test_workflowworkitem.py:1.1.2.1 Mon Dec 23 14:32:39 2002
+++ Zope3/src/zope/app/workflow/tests/test_workflowworkitem.py Tue Dec 24 21:20:56 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
import unittest
from zope.interface.verify import verifyClass