[Zope] Re: [Zope]problems writing unit tests

Robert Rottermann robert@redcor.ch
Sun, 28 Apr 2002 20:59:49 +0200


Thank you very much Simon.
This did the trick.

If you could explain the difference between MockRequest and the functin
makerequest()
I would be doubbly gratefull.
I would be happy if you point me to some info. I do not know what the Zope's
app object ist, and I found no howto to enlighten me.

Thanks again
Robert
----- Original Message -----
From: "Simon Michael" <simon@joyful.com>
To: <zope@zope.org>
Sent: Sunday, April 28, 2002 5:58 PM
Subject: [Zope] Re: [Zope]problems writing unit tests


> Robert - the code you're calling is expecting a more complete REQUEST
> instance. You might find http://zwiki.org/zwikidir/tests/support.py
useful,
> eg the MockRequest.
>
> Hope this helps,
> -Simon
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>