def test_withdraw_money(self):
     bank.balance = 100
     self.assertEqual(40, bank.withdraw_money(60))
Beispiel #2
0
 def test_withdraw_money(self):
     bank.balance = 100
     self.assertEqual(40, bank.withdraw_money(60))
Beispiel #3
0
 def test_withdraw_negative_amount_of_money(self):
     self.assertEqual(False, bank.withdraw_money(-100))
Beispiel #4
0
 def test_withdraw_money(self):
     bank.balance = 100
     bank.withdraw_money(75)
     self.assertEqual(25, bank.get_balance())
 def test_withdraw_more_money_than_balance(self):
     bank.balance = 100
     self.assertTrue(not bank.withdraw_money(200))
 def test_withdraw_negative_money(self):
     self.assertTrue(not bank.withdraw_money(-100))
 def test_withdraw_money(self):
     bank.balance = 200
     self.assertTrue(bank.withdraw_money(100))
     self.assertEqual(100, bank.get_balance())