Ejemplo n.º 1
0
def test_el_confirm():
    f = Form('f', static=True)
    f.add_password('p', 'password')
    cel = f.add_confirm('f', match='p')
    assert cel() == '', cel()
Ejemplo n.º 2
0
def test_el_password():
    f = Form('f', static=True)
    el = f.add_password('p', 'password')
    assert el() == '', el()