Comment 2 for bug 246983

Revision history for this message
Andreas Jung (ajung) wrote :

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()