Beispiel #1
0
	def test_withdraw(self):
		bank = Bank()

		account_1 = Account(001, 50)

		bank.add_account(account_1)

		self.assertEqual(bank.withdraw(001, 50), 0)
		self.assertEqual(bank.withdraw(001, 100), 'Insufficient balance')
		self.assertEqual(bank.withdraw(002, 50), 'Account does not exist')
 def test_withdraw(self):
     bank = Bank()
     account_1 = Account(001, 50)
     bank.add_account(account_1)
     self.assertEqual(bank.withdraw(001,20), 30)