[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/tests -
test_directives.py:1.5 test_importexport.py:1.4
Philipp von Weitershausen
cvs-admin at zope.org
Thu Nov 27 08:59:28 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/workflow/tests
In directory cvs.zope.org:/tmp/cvs-serv22470/workflow/tests
Modified Files:
test_directives.py test_importexport.py
Log Message:
Use super in test setUp methods. We can do this now because TestCase
(finally!) is a new-style class Python 2.3.
=== Zope3/src/zope/app/workflow/tests/test_directives.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/workflow/tests/test_directives.py:1.4 Fri Aug 1 16:41:05 2003
+++ Zope3/src/zope/app/workflow/tests/test_directives.py Thu Nov 27 08:59:27 2003
@@ -29,7 +29,7 @@
class DirectivesTest(PlacelessSetup, unittest.TestCase):
def setUp(self):
- PlacelessSetup.setUp(self)
+ super(DirectivesTest, self).setUp()
self.context = xmlconfig.file("workflow.zcml", directive_helpers)
def testImportHandler(self):
=== Zope3/src/zope/app/workflow/tests/test_importexport.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/workflow/tests/test_importexport.py:1.3 Fri Jun 6 15:29:08 2003
+++ Zope3/src/zope/app/workflow/tests/test_importexport.py Thu Nov 27 08:59:27 2003
@@ -25,19 +25,15 @@
dh = directive_helpers
class PDA:
-
implements(dh.ITestProcessDefinitionA)
class PDB:
-
implements(dh.ITestProcessDefinitionB)
-
class Test(PlacelessSetup, unittest.TestCase):
-
def setUp(self):
- PlacelessSetup.setUp(self)
+ super(Test, self).setUp()
gIE.addImportHandler(dh.ITestProcessDefinitionA,
dh.TestImportHandlerA)
gIE.addImportHandler(dh.ITestProcessDefinitionB,
@@ -60,7 +56,6 @@
'Exported A')
self.assertEqual(gIE.exportProcessDefinition(None, PDB()),
'Exported B')
-
def test_suite():
loader=unittest.TestLoader()
More information about the Zope3-Checkins
mailing list