示例#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())