Thanks

can now see the issue best example i found was
http://www.thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/

Chris


On Apr 11, 11:04 am, Marco Mariani <[EMAIL PROTECTED]> wrote:
> Chris wrote:
> > I am trying to set up a set of test that require a identity set
> > I have used the the following to give the tests an identity
> >     chris = User.get(1)
> >     testutil.set_identity_user(chris)
> > and this works fine when i call
> >     testutil.call(cherrypy.root.list.list)
> > however their are some test that i need to run createRequest and when
> > i run
> >     testutil.createRequest("/list/list")
> > the cherrypy.response.status is always Forbidden
>
> I think it's because you need (well, you might want to) to fill a cookie
> and use that after the first authentication
>
> > How do i get createRequest to work in the same way as call?
>
> There is a simple recipe, on the TG wiki, to keep track of the visit cookie.
>
> Or grep the mailing list for a solution that involves mechanize and
> twill, it works for me.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to