Revision ecf7726f
Correction tests unitaires suite à màj de repoze.who.
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@4270 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigiboard/tests/functional/test_authentication.py | ||
---|---|---|
39 | 39 |
home_page = post_login.follow(status=302) |
40 | 40 |
assert 'authtkt' in home_page.request.cookies, \ |
41 | 41 |
'Session cookie was not defined: %s' % home_page.request.cookies |
42 |
assert home_page.location == '/' |
|
42 |
assert home_page.location == 'http://localhost/'
|
|
43 | 43 |
|
44 | 44 |
def test_logout(self): |
45 | 45 |
"""Logouts must work correctly""" |
... | ... | |
54 | 54 |
assert resp.location.startswith('/post_logout') |
55 | 55 |
# Finally, redirected to the home page: |
56 | 56 |
home_page = resp.follow(status=302) |
57 |
assert home_page.request.cookies.get('authtkt') == '', \ |
|
57 |
assert home_page.request.cookies.get('authtkt') == '' \ |
|
58 |
or home_page.request.cookies.get('authtkt') == 'INVALID', \ |
|
58 | 59 |
'Session cookie was not deleted: %s' % home_page.request.cookies |
59 |
assert home_page.location == '/', home_page.location |
|
60 |
assert home_page.location == 'http://localhost/', home_page.location |
Also available in: Unified diff