def test_ask_yes_or_no_YES(): sys.stdin = open("human_inputs6.txt") #read input from file. only 1 "Y" assert Hundred.ask_yes_or_no("Roll dice again? 'Y' or 'N':") == True
def test_ask_yes_or_no_NO(): sys.stdin = open("human_inputs5.txt") #read input from file. only 1 "N" assert Hundred.ask_yes_or_no("Roll dice again? 'Y' or 'N':") == False