示例#1
0
def test_wrong_new_password():
    reset_form = authforms.pw_reset_form()
    assert not reset_form.validates(web.storify({
        'password': '******',
        'new': '123abc',
        'confirm': '123123'
    }))
示例#2
0
def test_wrong_new_password():
    reset_form = authforms.pw_reset_form()
    assert not reset_form.validates(
        web.storify({
            'password': '******',
            'new': '123abc',
            'confirm': '123123'
        }))
示例#3
0
def test_reset_form():
    reset_form = authforms.pw_reset_form()
    assert isinstance(reset_form, web.form.Form)
示例#4
0
def test_reset_form():
    reset_form = authforms.pw_reset_form()
    assert isinstance(reset_form, web.form.Form)