[Zope] problems writing unit tests
Robert Rottermann
robert@redcor.ch
Sat, 27 Apr 2002 22:29:07 +0200
Hi there,
one of the methods I call from a unittest changes a property.
When called from "normal" zope it works fine.
When I call the same function from a unittest it breaks saying that URL1" is
not defined.
Here is the code I use.
The first time (no property it) works fine. The second time it breaks
if self.hasProperty('poolGroup'):
self.manage_changeProperties(REQUEST = {' poolGroup':= group})
else:
self.manage_addProperty(id = 'poolGroup', type='string',
value=group)
Setting the Property like this:
self.manage_changeProperties(REQUEST = None, poolGroup = group)
does not generate an error, but does not change it.
Any hints are greatly appreciated.
Robert
www.redcor.ch