コード例 #1
0
def test_transactions(earned, spent, expected):
    my_account = BankAccount()
    my_account.add_cash(earned)
    my_account.spend_cash(spent)
    assert my_account.balance == expected