Пример #1
0
    def test_transfer_negative_debit(self):
        account = Account(999, -10000)
        account.transfer(-1000)

        self.assertEqual(account.funds, -11500)
Пример #2
0
    def test_transfer_zero_debit(self):
        account = Account(999, 10000)
        account.transfer(-10000)

        self.assertEqual(account.funds, 0)
Пример #3
0
    def test_transfer_deposit(self):
        account = Account(999, 10000)
        account.transfer(1000)

        self.assertEqual(account.funds, 11000)