def test_transfer_negative_debit(self): account = Account(999, -10000) account.transfer(-1000) self.assertEqual(account.funds, -11500)
def test_transfer_zero_debit(self): account = Account(999, 10000) account.transfer(-10000) self.assertEqual(account.funds, 0)
def test_transfer_deposit(self): account = Account(999, 10000) account.transfer(1000) self.assertEqual(account.funds, 11000)