[Zope] Zope unit testing - users?
Stefan H. Holek
stefan@epy.co.at
Sun, 29 Jun 2003 02:12:09 +0200
You may want to have a look at ZopeTestCase. With it, changing the
active user amounts to a call to
self.login('someuser')
Stefan
On Freitag, Jun 27, 2003, at 07:21 Europe/Vienna, Richard Jones wrote:
>
> Is there any way to change the current user in Zope unit tests? I've
> managed to trace the current user down to
> SecurityManager._context.user, but reassigning that doesn't seem to
> make the change. Any hints?
>
> I've poked through the Zope source and Products to see if there's any
> hints - but it doesn't look like anyone unit-tests security
> restrictions?!?
>
>
--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is. /Pete McBreen/