Coverage for bookie.tests.test_auth : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Test the auth related web calls"""
# from bookie.lib import access # from bookie.models import DBSession
"""Testing web calls"""
"""We need to empty the bmarks table on each run"""
"""Verify we get the login form"""
msg="Request should contain Log In: " + res.body)
# there should be a login form on there msg="The login input should be visible in the body:" + res.body)
"""Verify a good login"""
# the migrations add a default admin account 'password': 'admin', 'form.submitted': 'true'}
params=user_data) msg='status is 302 Found, ' + res.status)
# should end up back at the recent page "Should have 'recent' in the resp: " + str(res))
"""Verify a bad login"""
# the migrations add a default admin account 'password': 'wrongpass', 'form.submitted': 'true'}
params=user_data)
msg='status is 200 OK, ' + res.status)
# should end up back at login with an error message "Should have 'Failed login' in the resp: " + str(res)) |