I'm new to unit testing. I'm working on an ATM program. I want to make a unit test for the deposit operation. I have checked online but i am not getting an answer to my problem. This is my first time of posting here. Thank you for the assistance in advance
This is my code below
def deposit_operation(user):
amount_to_deposit = int(input('ENTER AMOUNT YOU WANT TO DEPOSIT: ')
# amount should be in multiples of 1,000
if amount_to_deposit % 1000 != 0:
print('AMOUNT YOU WANT TO DEPOSIT MUST BE IN MULTIPLES OF 1000 NAIRA NOTES')
deposit_operation(user)
else:
user[4] = user[4] + amount_to_deposit
print(f'*** YOUR NEW BALANCE IS: {user[4]} NAIRA ****')
perform_another_operation(user)