コード例 #1
0
ファイル: test_auth.py プロジェクト: andyjia/acl.py
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
ファイル: test_auth.py プロジェクト: hucruz/acl.py
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
ファイル: test_auth.py プロジェクト: andyjia/acl.py
def test_reset_form():
    reset_form = authforms.pw_reset_form()
    assert isinstance(reset_form, web.form.Form)
コード例 #4
0
ファイル: test_auth.py プロジェクト: hucruz/acl.py
def test_reset_form():
    reset_form = authforms.pw_reset_form()
    assert isinstance(reset_form, web.form.Form)