def test_wrong_new_password(): reset_form = authforms.pw_reset_form() assert not reset_form.validates(web.storify({ 'password': '******', 'new': '123abc', 'confirm': '123123' }))
def test_wrong_new_password(): reset_form = authforms.pw_reset_form() assert not reset_form.validates( web.storify({ 'password': '******', 'new': '123abc', 'confirm': '123123' }))
def test_reset_form(): reset_form = authforms.pw_reset_form() assert isinstance(reset_form, web.form.Form)