예제 #1
0
def test_not_confirmed():
    """
    Test html generated by a failed confirmation.
    """
    assert alerts.confirmed(open(home("tests/data/html/bad-verify.html")).read()) == False
예제 #2
0
def test_confirmed():
    """
    Test html generated by a successful confirmation
    """
    assert alerts.confirmed(open(home("tests/data/html/good-verify.html")).read())