Changeset 102 for trunk/pysvnmanager/tests/functional/test_repos.py
- Timestamp:
- 2009年08月23日 17时45分16秒 (3 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
. (modified) (1 prop)
-
pysvnmanager/tests/functional/test_repos.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo
-
old new 1 /branches/0.2.1.x:9 5-972 /branches/0.2.3.x:98- 991 /branches/0.2.1.x:94-97 2 /branches/0.2.3.x:98-101
-
- Property svn:mergeinfo
-
trunk/pysvnmanager/tests/functional/test_repos.py
r55 r102 26 26 res = self.app.get(url_for(controller='repos')) 27 27 assert res.status == 302 28 self.assertEqual(res.header('location'), ' http://localhost/login')28 self.assertEqual(res.header('location'), '/login') 29 29 30 30 # Login as common user … … 32 32 res = self.app.get(url_for(controller='repos')) 33 33 assert res.status == 302, res.status 34 assert res.header('location')==' http://localhost/security/failed', res.header('location')34 assert res.header('location')=='/security/failed', res.header('location') 35 35 36 # Permission denied for repos admin(not root admin)36 # repos admin can access repos controller(not root admin), but only with authed repos 37 37 self.login('admin2') 38 38 res = self.app.get(url_for(controller='repos')) 39 assert res.status == 302, res.status 40 assert res.header('location')=='http://localhost/security/failed', res.header('location') 39 assert res.status == 200, res.status 40 41 # ??? Repos admin can or can not manage hooks for his/her repos ??? 42 self.login('admin2') 43 res = self.app.get(url_for(controller='repos', action='init_repos_list')) 44 assert """id[0]="...";name[0]="Please choose..."; 45 total=1;""" in res.body, res.body 41 46 42 47 # Login as superuser … … 52 57 assert res.status == 200 53 58 assert """id[0]="...";name[0]="Please choose..."; 54 id[1]="project1";name[1]="project1"; 55 id[2]="project2";name[2]="project2"; 56 id[3]="repos3";name[3]="repos3"; 57 total=4; 58 """ in res.body, res.body[:100] 59 id[1]="repos3";name[1]="repos3"; 60 id[2]="project1";name[2]="project1 (!)"; 61 id[3]="project2";name[3]="project2 (!)"; 62 total=4;""" in res.body, res.body[:200] 59 63 60 64 def test_get_plugin_list(self):
![(please configure the [header_logo] section in trac.ini)](/trac/pysvnmanager/chrome/common/trac_banner.png)