Unit testing authorization in a Pylons app fails; cookies aren't been correctly set or recorded
- by Ian Stevens
I'm having an issue running unit tests for authorization in a Pylons app. It appears as though certain cookies set in the test case may not be correctly written or parsed. Cookies work fine when hitting the app with a browser.
Here is my test case inside a paste-generated TestController:
def test_good_login(self):
r =…