Show
Ignore:
Timestamp:
2009年08月23日 18时14分31秒 (3 years ago)
Author:
jiangx
Message:

unittest works for python 0.9.7. Redirect location with prefix: http://localhost.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pysvnmanager/tests/functional/test_repos.py

    r102 r103  
    2626        res = self.app.get(url_for(controller='repos')) 
    2727        assert res.status == 302 
    28         self.assertEqual(res.header('location'), '/login') 
     28        assert res.header('location').endswith('/login'), res.header('location') 
    2929 
    3030        # Login as common user 
     
    3232        res = self.app.get(url_for(controller='repos')) 
    3333        assert res.status == 302, res.status 
    34         assert res.header('location')=='/security/failed', res.header('location') 
     34        assert res.header('location').endswith('/security/failed'), res.header('location') 
    3535         
    3636        # repos admin can access repos controller(not root admin), but only with authed repos