[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/registration/tests - test_componentpathwidget.py:1.5 test_registrationstatuswidget.py:1.4

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


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

Modified Files:
	test_componentpathwidget.py test_registrationstatuswidget.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/browser/services/registration/tests/test_componentpathwidget.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/services/registration/tests/test_componentpathwidget.py:1.4	Fri Nov 21 12:11:57 2003
+++ Zope3/src/zope/app/browser/services/registration/tests/test_componentpathwidget.py	Thu Nov 27 08:59:14 2003
@@ -56,7 +56,7 @@
 class ComponentPathWidgetTest(PlacelessSetup, unittest.TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(ComponentPathWidgetTest, self).setUp()
         ztapi.provideAdapter(None, ITraverser, Traverser)
         ztapi.provideAdapter(None, ITraversable, DefaultTraversable)
         ztapi.provideAdapter(None, IPhysicallyLocatable,


=== Zope3/src/zope/app/browser/services/registration/tests/test_registrationstatuswidget.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/services/registration/tests/test_registrationstatuswidget.py:1.3	Wed Aug 13 17:28:20 2003
+++ Zope3/src/zope/app/browser/services/registration/tests/test_registrationstatuswidget.py	Thu Nov 27 08:59:14 2003
@@ -26,7 +26,7 @@
 class Test(PlacelessSetup, TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(Test, self).setUp()
         
     def test_call(self):
         field = RegistrationStatus(__name__="status")




More information about the Zope3-Checkins mailing list