Exemple #1
0
def test_account_ban_successful():
    # 4.8.2 Account banning
    manager = AccountManager()
    account = Account('*****@*****.**')

    manager.add_account(account)
    manager.ban_account(account, True)

    assert manager.is_account_banned(account) == True, 'Expected account to be banned'
Exemple #2
0
def test_account_unban_successful():
    # 4.8.2 Account banning
    manager = AccountManager()
    account = Account('*****@*****.**')
    account.is_banned = True

    manager.add_account(account)
    manager.ban_account(account, False)

    assert manager.is_account_banned(account) == False, 'Expected account to be not banned'