[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests - test_contentdirective.py:1.11 test_directives.py:1.17 test_factory.py:1.8 test_requirepermissions.py:1.10 test_servicedirective.py:1.11

Philipp von Weitershausen cvs-admin at zope.org
Thu Nov 27 08:59:47 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/component/tests
In directory cvs.zope.org:/tmp/cvs-serv22470/component/tests

Modified Files:
	test_contentdirective.py test_directives.py test_factory.py 
	test_requirepermissions.py test_servicedirective.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/component/tests/test_contentdirective.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/component/tests/test_contentdirective.py:1.10	Sun Sep 21 13:31:21 2003
+++ Zope3/src/zope/app/component/tests/test_contentdirective.py	Thu Nov 27 08:59:17 2003
@@ -48,7 +48,7 @@
 
 class TestContentDirective(PlacelessSetup, unittest.TestCase):
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(TestContentDirective, self).setUp()
         newSecurityManager(system_user)
         XMLConfig('meta.zcml', zope.app.component)()
         XMLConfig('meta.zcml', zope.app.security)()
@@ -135,7 +135,7 @@
 
 class TestFactorySubdirective(PlacelessSetup, unittest.TestCase):
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(TestFactorySubdirective, self).setUp()
         newSecurityManager(system_user)
         XMLConfig('meta.zcml', zope.app.component)()
         XMLConfig('meta.zcml', zope.app.security)()


=== Zope3/src/zope/app/component/tests/test_directives.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/component/tests/test_directives.py:1.16	Fri Nov 21 12:10:24 2003
+++ Zope3/src/zope/app/component/tests/test_directives.py	Thu Nov 27 08:59:17 2003
@@ -56,7 +56,7 @@
     # XXX: tests for other directives needed
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         XMLConfig('meta.zcml', zope.app.component)()
         XMLConfig('meta.zcml', zope.app.security)()
 


=== Zope3/src/zope/app/component/tests/test_factory.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/component/tests/test_factory.py:1.7	Sun Aug  3 13:50:15 2003
+++ Zope3/src/zope/app/component/tests/test_factory.py	Thu Nov 27 08:59:17 2003
@@ -38,7 +38,7 @@
 
 class Test(PlacelessSetup, unittest.TestCase):
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         newSecurityManager(system_user)
         XMLConfig('meta.zcml', zope.app.component)()
         XMLConfig('meta.zcml', zope.app.security)()


=== Zope3/src/zope/app/component/tests/test_requirepermissions.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/component/tests/test_requirepermissions.py:1.9	Sun Aug 17 02:06:17 2003
+++ Zope3/src/zope/app/component/tests/test_requirepermissions.py	Thu Nov 27 08:59:17 2003
@@ -49,7 +49,7 @@
 class Test(PlacelessSetup, unittest.TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         defineDirectives()
 
         class B:


=== Zope3/src/zope/app/component/tests/test_servicedirective.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/component/tests/test_servicedirective.py:1.10	Sun Aug  3 13:50:15 2003
+++ Zope3/src/zope/app/component/tests/test_servicedirective.py	Thu Nov 27 08:59:17 2003
@@ -38,7 +38,7 @@
     # XXX: tests for other directives needed
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         XMLConfig('meta.zcml', zope.app.component)()
 
     def testServiceConfigNoType(self):




More information about the Zope3-Checkins mailing list