class testBankAccount(unittest.TestCase): def setUp(self): self.bankacc = BankAccount("Ivan", 30, '$') def test_get_balance(self): self.assertEqual(self.bankacc.get_balance(), 30) def test___str__(self): self.assertEqual(self.bankacc.__str__(), "BankAccount for Ivan with balance of 30$")
] return month_names[int(month) - 1] def change_date(input_date): content = input_date.split('/') print(content) print(content[0] + ' ' + get_month_name(content[1]) + ' ' + content[2]) #print(x) #execute(-200) #simple_interest(760000, 10.6, 0.5) #change_date('9/10/2020') account = BankAccount('Mayokun Oke', '2122500103', '387247272092', 100000) print('Account Name: ', account.get_account_name()) print('Account Number: ', account.get_account_number()) print('BVN:', account.get_bvn()) print('Balance:', account.get_balance()) account.deposit(23500) print('Balance:', account.get_balance()) account.withdraw(500000) #account.withdraw(123000) pupil = Student('Mayokun Oke', 'Female', 'PDS/APP/1999079', 'Engineering') pupil.add_subject("Mathematics") pupil.add_subject("English") pupil.add_subject("Chemistry") pupil.add_subject("Physics") print('Subject: ', pupil.get_subjects())