Exemplo n.º 1
0
def test_account_balance():
    balance_current = ["100", "20000", "95000", "1"]

    transaction = Transaction()

    for balance in balance_current:
        assert transaction.account_balance(
            balance) == True, "User has money in account"
Exemplo n.º 2
0
def test_account_balance_null():
    bank_account_is_empty = [
        "0",
        "-100",
        None,
    ]

    transaction = Transaction()

    for balance in bank_account_is_empty:
        assert transaction.account_balance(
            balance) == False, "User has no money in account"