Unittest:
def testBug246983(self): """ Test for LP #246983 """ manage_addPageTemplate(self.app, 'test', text="<div tal:define=\"va python: here.script('Änderung')\"" " tal:content=\"string: Die ist eine ${va}\"></div>", encoding='iso-8859-15') zpt = self.app['test'] manage_addPythonScript(self.app, 'script') script = self.app['script'] script.ZPythonScript_edit(params='dummy', body='return dummy') result = zpt.pt_render()
Unittest:
def testBug246983( self):
manage_ addPageTemplate (self.app, 'test',
text= "<div tal:define=\"va python: here.script( 'Änderung' )\""
" tal:content= \"string: Die ist eine ${va}\"></div>",
encoding= 'iso-8859- 15')
manage_ addPythonScript (self.app, 'script')
script. ZPythonScript_ edit(params= 'dummy' , body='return dummy')
""" Test for LP #246983 """
zpt = self.app['test']
script = self.app['script']
result = zpt.pt_render()