moksha/tests/functional/test_authentication.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 9e922a4bf9ef29dbe39cdaf7b3c8dfb6446c4648 Author: Luke Macken lmacken@redhat.com Date: Wed Feb 24 19:57:03 2010 -0500
Update our test_authentication.py to work with the new TG 2.1 stack
diff --git a/moksha/tests/functional/test_authentication.py b/moksha/tests/functional/test_authentication.py index a86dcb2..becdc5c 100644 --- a/moksha/tests/functional/test_authentication.py +++ b/moksha/tests/functional/test_authentication.py @@ -97,6 +97,7 @@ class TestAuthentication(TestController): assert resp.location.startswith('http://localhost/post_logout') # Finally, redirected to the home page: home_page = resp.follow(status=302) - assert home_page.request.cookies.get('authtkt') == '', \ + authtkt = home_page.request.cookies.get('authtkt') + assert authtkt in ('', 'INVALID'), \ 'Session cookie was not deleted: %s' % home_page.request.cookies assert home_page.location == 'http://localhost/', home_page.location
moksha-commits@lists.fedorahosted.org