[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser/tests - test_directives.py:1.26 test_directoryresource.py:1.4 test_fileresource.py:1.9 test_globalbrowsermenuservicedirectives.py:1.9 test_icondirective.py:1.15 test_pagetemplateresource.py:1.3 test_resources.py:1.7 testi18nfileresource.py:1.7

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


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

Modified Files:
	test_directives.py test_directoryresource.py 
	test_fileresource.py 
	test_globalbrowsermenuservicedirectives.py 
	test_icondirective.py test_pagetemplateresource.py 
	test_resources.py testi18nfileresource.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/publisher/browser/tests/test_directives.py 1.25 => 1.26 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_directives.py:1.25	Fri Nov 21 12:10:36 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_directives.py	Thu Nov 27 08:59:23 2003
@@ -93,7 +93,7 @@
 class Test(PlacelessSetup, unittest.TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         XMLConfig('meta.zcml', zope.app.publisher.browser)()
 
         from zope.app.tests import ztapi


=== Zope3/src/zope/app/publisher/browser/tests/test_directoryresource.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_directoryresource.py:1.3	Wed Sep 24 13:31:30 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_directoryresource.py	Thu Nov 27 08:59:23 2003
@@ -53,7 +53,7 @@
 class Test(PlacelessSetup, TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
 
     def testNotFound(self):
         path = os.path.join(test_directory, 'testfiles')


=== Zope3/src/zope/app/publisher/browser/tests/test_fileresource.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_fileresource.py:1.8	Fri Nov 21 12:12:10 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_fileresource.py	Thu Nov 27 08:59:23 2003
@@ -48,7 +48,7 @@
 class Test(PlacelessSetup, TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         ztapi.provideAdapter(IHTTPRequest, IUserPreferredCharsets,
                              HTTPCharsets)
 


=== Zope3/src/zope/app/publisher/browser/tests/test_globalbrowsermenuservicedirectives.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_globalbrowsermenuservicedirectives.py:1.8	Sun Aug 17 02:07:35 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_globalbrowsermenuservicedirectives.py	Thu Nov 27 08:59:23 2003
@@ -39,7 +39,7 @@
 class Test(PlacelessSetup, TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         XMLConfig('meta.zcml', zope.app.publisher.browser)()
 
     def test(self):


=== Zope3/src/zope/app/publisher/browser/tests/test_icondirective.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_icondirective.py:1.14	Fri Nov 21 12:10:51 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_icondirective.py	Thu Nov 27 08:59:23 2003
@@ -62,7 +62,7 @@
 class Test(PlacelessSetup, TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         XMLConfig('meta.zcml', zope.app.publisher.browser)()
         defineCheckers()
 


=== Zope3/src/zope/app/publisher/browser/tests/test_pagetemplateresource.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_pagetemplateresource.py:1.2	Fri Nov 21 12:12:10 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_pagetemplateresource.py	Thu Nov 27 08:59:23 2003
@@ -39,7 +39,7 @@
 class Test(PlacelessSetup, TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         ztapi.provideAdapter(None, ITraversable, DefaultTraversable)
 
     def testNoTraversal(self):


=== Zope3/src/zope/app/publisher/browser/tests/test_resources.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/publisher/browser/tests/test_resources.py:1.6	Fri Nov 21 12:12:10 2003
+++ Zope3/src/zope/app/publisher/browser/tests/test_resources.py	Thu Nov 27 08:59:23 2003
@@ -32,7 +32,7 @@
 class Test(PlacelessSetup, TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         ztapi.provideAdapter(IHTTPRequest, IUserPreferredCharsets,
                              HTTPCharsets)
 


=== Zope3/src/zope/app/publisher/browser/tests/testi18nfileresource.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/publisher/browser/tests/testi18nfileresource.py:1.6	Fri Nov 21 12:12:10 2003
+++ Zope3/src/zope/app/publisher/browser/tests/testi18nfileresource.py	Thu Nov 27 08:59:23 2003
@@ -52,7 +52,7 @@
 class Test(PlacelessSetup, TestII18nAware):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         TestII18nAware.setUp(self)
         ztapi.provideAdapter(IHTTPRequest, IUserPreferredCharsets,
                              HTTPCharsets)




More information about the Zope3-Checkins mailing list