![](https://secure.gravatar.com/avatar/2326f5e54bb073d5252a23b39708b839.jpg?s=120&d=mm&r=g)
25 Jul
2007
25 Jul
'07
5:49 a.m.
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.. Because the method I'm testing does not get context as a parameter in
Colin Alston wrote: the first place :-)
ctx = context.WebContext(tag=page) ctx.remember(testutil.AccumulatingFakeRequest())
Hope this helps in any way... It did, I wasn't aware of testutil. It seems that my Nevow version (0.9.0) was a bit old as well.
Thanks a lot. I'll see if I can add this to the Nevow faq (does it exist?) BTW: Should new apps be written in conformance with this document: http://divmod.org/trac/wiki/DivmodNevow/ContextRemoval ? Regards, Tarjei