On 7/26/07, Chris Gray <[EMAIL PROTECTED]> wrote:
Is there any standard way of unit testing the two page templating
methods in Zope 2?
If you're trying to test the output produced by a dtml/zpt, you could
try to invoke it, inside a zopetestcase.
self.app.index_html = PageTemplateFile(path_to_your_template, globals())
x = self.app.index_html();
I'm using here PageTemplateFile, but you can do it with standard
The problem is what you're trying to test (and, therefore, to assert).
Checking for equality is too fine grained, where you would check for
the structure of the zpt, for example. A little parser could be
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -