[Twisted-web] Creating contexts for Unit Tests
Colin Alston
karnaugh at karnaugh.za.net
Tue Jul 24 14:57:56 EDT 2007
On 24/07/2007 20:10 tarjei wrote:
> Hi, I've run into a problem related to testing my application.
>
I can't quite understand why you're setting page.context. What I do is
this..
ctx = context.WebContext(tag=page)
ctx.remember(testutil.AccumulatingFakeRequest())
Hope this helps in any way...
--
Colin Alston ~ http://www.karnaugh.za.net/
"To the world you may be one person, to one person you may be the
world" ~ Rachel Ann Nunes.
Terms and conditions: http://www.karnaugh.za.net/email.rpy
More information about the Twisted-web
mailing list