Browse Source

fixes tests and build

Damien ACCORSI 9 years ago
parent
commit
ee654c647c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tracim/tracim/tests/functional/test_authentication.py

+ 3 - 3
tracim/tracim/tests/functional/test_authentication.py View File

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