tests: check homepage redirect

This commit is contained in:
Frédéric Péters 2016-07-07 16:47:48 +02:00
parent 3653b8f7aa
commit c0aafdee59
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ def test_unlogged_access(app):
# connect while not being logged in
assert app.get('/manage/', status=302).location == 'http://localhost:80/login/?next=/manage/'
def test_home_redirect(app):
assert app.get('/', status=302).location == 'http://localhost:80/manage/'
def test_access(app, admin_user):
app = login(app)
resp = app.get('/manage/', status=200)