|
From: Albertas A. <al...@co...> - 2001-12-18 10:49:53
|
Hello,
We're trying to do XP on a Zope project, and find that DTML methods
need to be tested, however hard we try not to put any logic into
them. Now, there are two questions:
* How to call a DTML method from a Tests.TestCase descendant?
My take would be something like
self.ZopeContext.re.Property.detailsHtml(self.zopeNames['_'].None,
self.zopeNames['_'])
but it fails to see the methods in the parent folders... I have to
admit acquisition is voodoo for me.
* Would using ZPT make our code more testable?
* And, yes, any hints on if it's possible to switch the authenticated
user, so we could test our permissions management?
Thanks in advance,
Albertas
|