Python unit test for nested if statement
问题 So I've been posting unit test questions because I'm trying to get good at them. I'll try to be as clear as possible. Below I have a nested if statement, I want to mock the input for the difficulty variable and check for the stdout if the condition is met. here is my run code.. def main(): print("''''''''''''''''''''''''''''''''''''") print("''''''''''''''''''''''''''''''''''''") print("''' \t\t\t\t '''") print("''' \t\t\t\t '''") print("''' \t Pirate Games\t\t '''") print("''' \tStart a new