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