[Zope-CMF] how can I fake authentication in a unit test case
Dieter Maurer
dieter@handshake.de
Mon, 28 Oct 2002 21:34:24 +0100
robert writes:
> in a complex environment with a bunch of groups , rules and folders I
> would like to programmatically test that every combination of
> user/role/document is properly handled permission wise.
You may look at "interactive debugging support" on
<http://www.dieter.handshake.de/pyprojects/zope>
There is a function "getAuthRequest" which creates an authenticated
request. Using its "traverse" method leds you to your object in a
way similar to the one, ZPublisher would use.
Dieter