"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Products/PageTemplates/tests/testChameleonTalesExpressions.py" between
Zope-5.1.2.tar.gz and Zope-5.2.tar.gz

About: Zope Z Object Publishing Environment - web application platform used for building content management systems, intranets, portals, and custom applications.

testChameleonTalesExpressions.py  (Zope-5.1.2):testChameleonTalesExpressions.py  (Zope-5.2)
import unittest
from ..expression import getEngine from ..expression import getEngine
from . import testHTMLTests from . import testHTMLTests
class ChameleonAqPageTemplate(testHTMLTests.AqPageTemplate): class ChameleonAqPageTemplate(testHTMLTests.AqPageTemplate):
def pt_getEngine(self): def pt_getEngine(self):
return getEngine() return getEngine()
class ChameleonTalesExpressionTests(testHTMLTests.HTMLTests): class ChameleonTalesExpressionTests(testHTMLTests.HTMLTests):
def setUp(self): def setUp(self):
super().setUp() super().setUp()
# override with templates using chameleon TALES expressions # override with templates using chameleon TALES expressions
self.folder.laf = ChameleonAqPageTemplate() self.folder.laf = ChameleonAqPageTemplate()
self.folder.t = ChameleonAqPageTemplate() self.folder.t = ChameleonAqPageTemplate()
# override ``PREFIX`` to be able to account for # override ``PREFIX`` to be able to account for
# small differences between ``zope.tales`` and ``chameleon.tales`` # small differences between ``zope.tales`` and ``chameleon.tales``
# expressions (e.g. the ``zope.tales`` ``not`` expression # expressions (e.g. the ``zope.tales`` ``not`` expression
# returns ``int``, that of ``chameleon.tales`` ``bool`` # returns ``int``, that of ``chameleon.tales`` ``bool``
PREFIX = "CH_" PREFIX = "CH_"
@unittest.skip('The test in the base class relies on a Zope context with'
' the "random" module available in expressions')
def test_underscore_traversal(self):
pass
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)