|
@@ -37,7 +37,7 @@ class TestAuthentication(TestController):
|
37
|
37
|
"""
|
38
|
38
|
|
39
|
39
|
# Requesting a protected area
|
40
|
|
- resp = self.app.get('/dashboard/', status=302)
|
|
40
|
+ resp = self.app.get('/home/', status=302)
|
41
|
41
|
ok_( resp.location.startswith('http://localhost/login'))
|
42
|
42
|
# Getting the login form:
|
43
|
43
|
resp = resp.follow(status=200)
|
|
@@ -51,7 +51,7 @@ class TestAuthentication(TestController):
|
51
|
51
|
initial_page = post_login.follow(status=302)
|
52
|
52
|
ok_('authtkt' in initial_page.request.cookies,
|
53
|
53
|
"Session cookie wasn't defined: %s" % initial_page.request.cookies)
|
54
|
|
- ok_(initial_page.location.startswith('http://localhost/dashboard/'),
|
|
54
|
+ ok_(initial_page.location.startswith('http://localhost/home/'),
|
55
|
55
|
initial_page.location)
|
56
|
56
|
|
57
|
57
|
|
|
@@ -72,7 +72,7 @@ class TestAuthentication(TestController):
|
72
|
72
|
real_home_page = home_page.follow(status=302)
|
73
|
73
|
ok_('authtkt' in real_home_page.request.cookies,
|
74
|
74
|
'Session cookie was not defined: %s' % real_home_page.request.cookies)
|
75
|
|
- eq_(real_home_page.location, 'http://localhost/dashboard')
|
|
75
|
+ eq_(real_home_page.location, 'http://localhost/home')
|
76
|
76
|
|
77
|
77
|
def test_logout(self):
|
78
|
78
|
"""Logouts must work correctly"""
|