Check out the tests in identity source.  Rather than mess with
obtaining and storing a cookie, you can just pass the username,
password, and login button to the protected controller (via GET
parameters in the url).  This fakes identity into thinking you are
logging in for the first time.

If you really want to track a user using cookies, see the
"test_old_visit" method in test_visit.py.  You could get the visit
cookie in the setup, login, store the cookie, and then just set the
header appropriately in each test you need.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to