[Zope3-checkins] CVS: Zope3/src/zope/i18n/tests - test_itranslationservice.py:1.8 test_negotiator.py:1.6 test_translator.py:1.7

Philipp von Weitershausen philikon at philikon.de
Sat Jan 10 06:02:38 EST 2004


Update of /cvs-repository/Zope3/src/zope/i18n/tests
In directory cvs.zope.org:/tmp/cvs-serv32117

Modified Files:
	test_itranslationservice.py test_negotiator.py 
	test_translator.py 
Log Message:
Use super() to invoke PlacelessSetup's setUp().


=== Zope3/src/zope/i18n/tests/test_itranslationservice.py 1.7 => 1.8 ===
--- Zope3/src/zope/i18n/tests/test_itranslationservice.py:1.7	Thu Aug  7 16:26:41 2003
+++ Zope3/src/zope/i18n/tests/test_itranslationservice.py	Sat Jan 10 06:02:37 2004
@@ -48,7 +48,7 @@
         pass
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(TestITranslationService, self).setUp()
         self._service = self._getTranslationService()
         assert verifyObject(ITranslationService, self._service)
         # Setup the negotiator service registry entry


=== Zope3/src/zope/i18n/tests/test_negotiator.py 1.5 => 1.6 ===
--- Zope3/src/zope/i18n/tests/test_negotiator.py:1.5	Fri Jun  6 15:29:10 2003
+++ Zope3/src/zope/i18n/tests/test_negotiator.py	Sat Jan 10 06:02:37 2004
@@ -33,8 +33,9 @@
 
 
 class Test(PlacelessSetup, unittest.TestCase):
+
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         self.Negotiator = Negotiator()
 
     def test1(self):


=== Zope3/src/zope/i18n/tests/test_translator.py 1.6 => 1.7 ===
--- Zope3/src/zope/i18n/tests/test_translator.py:1.6	Fri Jun  6 15:29:10 2003
+++ Zope3/src/zope/i18n/tests/test_translator.py	Sat Jan 10 06:02:37 2004
@@ -42,11 +42,11 @@
         self.id = LocaleIdentityStub(language)
 
 
-class TranslatorTests(unittest.TestCase, PlacelessSetup):
+class TranslatorTests(PlacelessSetup, unittest.TestCase):
 
     def setUp(self):
         # Create all the goo for placeless services
-        PlacelessSetup.setUp(self)
+        super(TranslatorTests, self).setUp()
         # Create a global translation service, initialized with a bunch of
         # catalogs (stolen from test_globaltranslationservice.py).
         path = testdir()




More information about the Zope3-Checkins mailing list