Suppose I have this code. Really unsure how to Unit test this seeing as it is a void method, requires user input, and the valid answer for one of the cases is to just call another method. Like how do I test this?
def start():
user_Response = input(
'\n' "○ Press 1 to Enter the Main Menu" '\n'
"○ Press 2 or type 'exit' to Exit \n ")
if user_Response == str(1):
mainMenu()
elif user_Response == str(2) or user_Response.lower() == "exit":
print(
'Thank you, good bye.
exit()
else:
"Please enter a valid response."
start() ```