Remove temporary set up code that was needed for X3 3.0's services to

be bootstrapped which in turn are needed for Zope 3 style translation.
Zope 3.2 has the a global utility registry available at all times, though.
parent 431dbf2d
......@@ -13,11 +13,6 @@
import os, sys, unittest
#XXX utility service needed for Zope X3 3.0. This will go away before
# when we switch to Zope 3.2 and thus be removed before the release --
# philiKON
import zope.app.tests.placelesssetup
from Products.PageTemplates.tests import util
from Products.PageTemplates.PageTemplate import PageTemplate
from Products.PageTemplates.GlobalTranslationService import \
......@@ -154,22 +149,12 @@ class HTMLTests(unittest.TestCase):
self.assert_expected_unicode(self.folder.t, 'CheckUnicodeInserts.html')
def checkI18nTranslate(self):
#XXX utility service needed for Zope X3 3.0. This will go
# away before when we switch to Zope 3.2 and thus be removed
# before the release -- philiKON
zope.app.tests.placelesssetup.setUp()
self.assert_expected(self.folder.t, 'CheckI18nTranslate.html')
zope.app.tests.placelesssetup.tearDown()
def checkI18nTranslateHooked(self):
#XXX utility service needed for Zope X3 3.0. This will go
# away before when we switch to Zope 3.2 and thus be removed
# before the release -- philiKON
zope.app.tests.placelesssetup.setUp()
old_ts = setGlobalTranslationService(TestTranslationService())
self.assert_expected(self.folder.t, 'CheckI18nTranslateHooked.html')
setGlobalTranslationService(old_ts)
zope.app.tests.placelesssetup.tearDown()
def test_suite():
return unittest.makeSuite(HTMLTests, 'check')
......
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