[Zope3-checkins] CVS: Zope3/src/zope/app/dav/tests - test_directives.py:1.2

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


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

Modified Files:
	test_directives.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/dav/tests/test_directives.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/dav/tests/test_directives.py:1.1	Sat Aug  2 13:26:15 2003
+++ Zope3/src/zope/app/dav/tests/test_directives.py	Thu Nov 27 08:59:18 2003
@@ -26,15 +26,13 @@
 from zope.interface import Interface
 import zope.app.dav.tests
 
-  
 class ISchema(Interface):
     pass
 
-
 class DirectivesTest(PlacelessSetup, unittest.TestCase):
 
     def setUp(self):
-        PlacelessSetup.setUp(self)
+        super(DirectivesTest, self).setUp()
         defineService(DAVSchema, IDAVSchemaService)
         serviceManager.provideService(DAVSchema, davSchemaService)
 
@@ -43,7 +41,6 @@
         self.context = xmlconfig.file("dav.zcml", zope.app.dav.tests)
         self.assertEqual(davSchemaService.queryNamespace(ISchema),
                          'http://www.zope3.org/dav-schema')
-
 
 def test_suite():
     return unittest.TestSuite((




More information about the Zope3-Checkins mailing list