Beispiel #1
0
def email_used(email):
    if User.email_used(email):
        return True

    if any(pe.new_email == email for pe in PendingEmail.ListAll()):
        return True

    if any(pu.email == email for pu in PendingUser.ListAll()):
        return True

    return False
Beispiel #2
0
def email_used(email):
    if User.email_used(email):
        return True

    if any(pe.new_email == email for pe in PendingEmail.ListAll()):
        return True

    if any(pu.email == email for pu in PendingUser.ListAll()):
        return True

    return False
Beispiel #3
0
def test_email_not_used():
    used = User.email_used('*****@*****.**')
    assert used == False
Beispiel #4
0
def test_wildcard_email_not_used():
    used = User.email_used('*')
    assert used == False
Beispiel #5
0
def test_email_used():
    used = User.email_used('*****@*****.**')
    assert used