[Zope3-checkins] CVS: Zope3/src/zope/app/content/tests -
test_dtmlpage.py:1.8 test_sqlscript.py:1.16 test_zptpage.py:1.16
Philipp von Weitershausen
cvs-admin at zope.org
Thu Nov 27 08:59:48 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/content/tests
In directory cvs.zope.org:/tmp/cvs-serv22470/content/tests
Modified Files:
test_dtmlpage.py test_sqlscript.py test_zptpage.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/content/tests/test_dtmlpage.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/content/tests/test_dtmlpage.py:1.7 Fri Nov 21 12:12:01 2003
+++ Zope3/src/zope/app/content/tests/test_dtmlpage.py Thu Nov 27 08:59:17 2003
@@ -42,7 +42,7 @@
class DTMLPageTests(PlacelessSetup, unittest.TestCase):
def setUp(self):
- PlacelessSetup.setUp(self)
+ super(DTMLPageTests, self).setUp()
ztapi.provideAdapter(None, ITraverser, Traverser)
ztapi.provideAdapter(None, ITraversable, DefaultTraversable)
defineChecker(Data, NamesChecker(['URL', 'name', '__getitem__']))
=== Zope3/src/zope/app/content/tests/test_sqlscript.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/content/tests/test_sqlscript.py:1.15 Fri Nov 21 12:12:01 2003
+++ Zope3/src/zope/app/content/tests/test_sqlscript.py Thu Nov 27 08:59:17 2003
@@ -124,10 +124,10 @@
return str(id(self.obj))
-class SQLScriptTest(unittest.TestCase, PlacelessSetup):
+class SQLScriptTest(PlacelessSetup, unittest.TestCase):
def setUp(self):
- PlacelessSetup.setUp(self)
+ super(SQLScriptTest, self).setUp()
classImplements(SQLScript, IAttributeAnnotatable)
sm.defineService('SQLDatabaseConnections', IConnectionService)
sm.provideService('SQLDatabaseConnections', ConnectionServiceStub())
=== Zope3/src/zope/app/content/tests/test_zptpage.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/content/tests/test_zptpage.py:1.15 Fri Nov 21 12:12:01 2003
+++ Zope3/src/zope/app/content/tests/test_zptpage.py Thu Nov 27 08:59:17 2003
@@ -48,7 +48,7 @@
class ZPTPageTests(PlacelessSetup, unittest.TestCase):
def setUp(self):
- PlacelessSetup.setUp(self)
+ super(ZPTPageTests, self).setUp()
ztapi.provideAdapter(None, ITraverser, Traverser)
ztapi.provideAdapter(None, ITraversable, DefaultTraversable)
ztapi.provideAdapter(IZPTPage, ISearchableText, SearchableText)
@@ -193,7 +193,7 @@
class ZPTSourceTest(PlacelessSetup, unittest.TestCase):
def setUp(self):
- PlacelessSetup.setUp(self)
+ super(ZPTSourceTest, self).setUp()
ztapi.browserView(IZPTPage, 'source.html', ZPTSourceView)
def testSourceView(self):
More information about the Zope3-Checkins
mailing list