Exemple #1
0
def test_send_password_reset_email_is_successful():
    # 4.2.1.2 Password reset email
    manager = AccountManager()
    account = Account('*****@*****.**')

    manager.add_account(account)

    assert manager.send_password_reset_email(
        account.email_address) == True, 'Password reset email should be sent successfully'
Exemple #2
0
def test_send_password_reset_email_is_unsuccessful():
    # 4.2.1.2 Password reset email
    manager = AccountManager()

    assert manager.send_password_reset_email(
        '*****@*****.**') == False, 'Password reset email should not be sent'