Commit 0418215f authored by Stefan H. Holek's avatar Stefan H. Holek

The setUp and tearDown methods are owned by ZopeTestCase.

parent 073f2d37
...@@ -86,16 +86,10 @@ class ZPTUtilsTests(unittest.TestCase): ...@@ -86,16 +86,10 @@ class ZPTUtilsTests(unittest.TestCase):
class ZPTUnicodeEncodingConflictResolution(ZopeTestCase): class ZPTUnicodeEncodingConflictResolution(ZopeTestCase):
def setUp(self): def afterSetUp(self):
super(ZPTUnicodeEncodingConflictResolution, self).setUp()
zope.component.provideAdapter(DefaultTraversable, (None,)) zope.component.provideAdapter(DefaultTraversable, (None,))
zope.component.provideAdapter(HTTPCharsets, (None,)) zope.component.provideAdapter(HTTPCharsets, (None,))
provideUtility(PreferredCharsetResolver, IUnicodeEncodingConflictResolver) provideUtility(PreferredCharsetResolver, IUnicodeEncodingConflictResolver)
transaction.begin()
def tearDown(self):
transaction.abort()
self.app._p_jar.close()
def testISO_8859_15(self): def testISO_8859_15(self):
manage_addPageTemplate(self.app, 'test', manage_addPageTemplate(self.app, 'test',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment