[Zope-Checkins] SVN: Zope/branches/2.10/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py The setUp and tearDown methods are owned by ZopeTestCase.

Stefan H. Holek stefan at epy.co.at
Wed Jan 10 07:23:58 EST 2007


Log message for revision 71857:
  The setUp and tearDown methods are owned by ZopeTestCase.
  

Changed:
  U   Zope/branches/2.10/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py

-=-
Modified: Zope/branches/2.10/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
===================================================================
--- Zope/branches/2.10/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py	2007-01-10 12:22:48 UTC (rev 71856)
+++ Zope/branches/2.10/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py	2007-01-10 12:23:57 UTC (rev 71857)
@@ -86,17 +86,11 @@
 
 class ZPTUnicodeEncodingConflictResolution(ZopeTestCase):
 
-    def setUp(self):
-        super(ZPTUnicodeEncodingConflictResolution, self).setUp()
+    def afterSetUp(self):
         zope.component.provideAdapter(DefaultTraversable, (None,))
         zope.component.provideAdapter(HTTPCharsets, (None,))
         provideUtility(PreferredCharsetResolver, IUnicodeEncodingConflictResolver)
-        transaction.begin()
 
-    def tearDown(self):
-        transaction.abort()
-        self.app._p_jar.close()
-
     def testISO_8859_15(self):
         manage_addPageTemplate(self.app, 'test', 
                                text='<div tal:content="python: request.get(\'data\')" />', 



More information about the Zope-Checkins mailing list