Ejemplo n.º 1
0
def test_verify_existing_account_with_non_existing_account():
    # 4.1.1.2 Existing accounts
    email = '*****@*****.**'
    manager = AccountManager()

    assert manager.verify_email_does_not_exist_in_system(
        email) == True, 'Account does not exist within the system'
Ejemplo n.º 2
0
def test_verify_existing_account_with_existing_account():
    # 4.1.1.2 Existing accounts
    email = '*****@*****.**'
    manager = AccountManager()
    newAccount = Account(email)

    manager.add_account(newAccount)
    assert manager.verify_email_does_not_exist_in_system(
        email) == False, 'Account already exists within the system'
Ejemplo n.º 3
0
def test_verify_password_reset_email_exists():
    # 4.2.1.1 Email validation
    manager = AccountManager()
    account = Account('*****@*****.**')

    manager.add_account(account)

    assert manager.verify_email_does_not_exist_in_system(
        account.email_address) == True, 'Email should exist in the system'
Ejemplo n.º 4
0
def test_verify_password_reset_email_does_not_exist():
    # 4.2.1.1 Email validation
    manager = AccountManager()
    assert manager.verify_email_does_not_exist_in_system(
        'ton$gregexamplecom') == False, 'Email should not exist in the system'