예제 #1
0
파일: test_auth.py 프로젝트: andyjia/acl.py
def test_email_belongs_to_account_validation():
    user = auth.User(username='******', email='*****@*****.**')
    user.create()
    email_form = authforms.email_request_form()
    assert email_form.validates(web.storify({
        'email': user.email,
    })), email_form.note
    assert not email_form.validates(web.storify({
        'email': '*****@*****.**',
    }))
예제 #2
0
파일: test_auth.py 프로젝트: hucruz/acl.py
def test_email_belongs_to_account_validation():
    user = auth.User(username='******', email='*****@*****.**')
    user.create()
    email_form = authforms.email_request_form()
    assert email_form.validates(web.storify({
        'email': user.email,
    })), email_form.note
    assert not email_form.validates(web.storify({
        'email': '*****@*****.**',
    }))
예제 #3
0
파일: test_auth.py 프로젝트: andyjia/acl.py
def test_email_request_form():
    email_form = authforms.email_request_form()
    assert isinstance(email_form, web.form.Form)
예제 #4
0
파일: test_auth.py 프로젝트: hucruz/acl.py
def test_email_request_form():
    email_form = authforms.email_request_form()
    assert isinstance(email_form, web.form.Form)