Re: Get path from response object

2013-03-25 Thread Jeffrey O'Neill
Yes!  Thank you.

On Mar 24, 7:04 pm, Gael Pasgrimaud g...@gawel.org wrote:
 On 24/03/2013 20:03, Jeffrey O'Neill wrote:









  Hello,

  I've been using webtest for a couple of years with Google App Engine,
  and the latest GAE update broke part of my testing code.

  A typical sequence in my testing code goes like this:
       response = form.submit(...)
       response = response.follow()   # Because the form processing does a
  redirect
       self.assertEqual(response.status, 200 OK)
       self.assertEqual(response.environ[PATH_INFO], /path/of/response)

  What broke is that response.environ is now None, where it used to have
  the desired path information.

  Is there another way to get the path information using webtest?

 response.request.path_info ?







  Any help would be greatly appreciated.

  Jeff

  --
  You received this message because you are subscribed to the Google
  Groups pylons-discuss group.
  To unsubscribe from this group and stop receiving emails from it, send
  an email to pylons-discuss+unsubscr...@googlegroups.com.
  To post to this group, send email to pylons-discuss@googlegroups.com.
  Visit this group athttp://groups.google.com/group/pylons-discuss?hl=en.
  For more options, visithttps://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Get path from response object

2013-03-24 Thread Gael Pasgrimaud

On 24/03/2013 20:03, Jeffrey O'Neill wrote:

Hello,

I've been using webtest for a couple of years with Google App Engine,
and the latest GAE update broke part of my testing code.

A typical sequence in my testing code goes like this:
 response = form.submit(...)
 response = response.follow()   # Because the form processing does a
redirect
 self.assertEqual(response.status, 200 OK)
 self.assertEqual(response.environ[PATH_INFO], /path/of/response)

What broke is that response.environ is now None, where it used to have
the desired path information.

Is there another way to get the path information using webtest?



response.request.path_info ?


Any help would be greatly appreciated.

Jeff

--
You received this message because you are subscribed to the Google
Groups pylons-discuss group.
To unsubscribe from this group and stop receiving emails from it, send
an email to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




--
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.