[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate/tests - test_viewzpt.py:1.11

Philipp von Weitershausen philikon at philikon.de
Wed Mar 3 21:07:06 EST 2004


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

Modified Files:
	test_viewzpt.py 
Log Message:
Use super(). Cleanup.


=== Zope3/src/zope/app/pagetemplate/tests/test_viewzpt.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/pagetemplate/tests/test_viewzpt.py:1.10	Fri Nov 21 12:11:07 2003
+++ Zope3/src/zope/app/pagetemplate/tests/test_viewzpt.py	Wed Mar  3 21:07:04 2004
@@ -37,14 +37,14 @@
 class InstanceWithoutContext:
     pass
 
+
 class TestViewZPT(PlacefulSetup, unittest.TestCase):
 
     def setUp(self):
-        PlacefulSetup.setUp(self)
+        super(TestViewZPT, self).setUp()
         self.t = ViewPageTemplateFile('test.pt')
         self.context = C1()
 
-
     def testNamespaceContextAvailable(self):
         context = self.context
         request = None
@@ -53,14 +53,12 @@
         self.failUnless(namespace['context'] is context)
         self.failUnless('views' in namespace)
 
-
     def testNamespaceHereNotAvailable(self):
         request = None
         self.assertRaises(AttributeError, self.t.pt_getContext,
                           InstanceWithoutContext(), request)
 
     def testViewMapper(self):
-
         the_view = "This is the view"
         the_view_name = "some view name"
         def ViewMaker(*args, **kw):
@@ -90,7 +88,7 @@
 class TestViewZPTUsage(PlacefulSetup, unittest.TestCase):
 
     def setUp(self):
-        PlacefulSetup.setUp(self)
+        super(TestViewZPTUsage, self).setUp()
         self.context = C1()
         self.request = None
 




More information about the Zope3-Checkins mailing list