def test_read_message(): InputOutput.CACHE_MODE = True InputOutput.INPUT_CACHE_DATA_USER = "******" in_out = InputOutput(interface_type=InputOutput.INTERFACE_TYPE_SIMPLE) in_out.write_message("Please enter your name.") message = in_out.read_message() assert message == InputOutput.INPUT_CACHE_DATA_USER
def test_input_name_and_verify(): InputOutput.CACHE_MODE = True InputOutput.INPUT_CACHE_DATA_USER = "******" in_out = InputOutput(interface_type=InputOutput.INTERFACE_TYPE_SIMPLE) in_out.write_message("Please enter your name.") message = in_out.read_message() test_analysis = MessageTypeAnalysis(message) assert test_analysis.is_name() == "Alex"
def test_send_message(): message = "This is a test" in_out = InputOutput(interface_type=InputOutput.INTERFACE_TYPE_SIMPLE) print("this is me testing....\n") assert in_out.write_message(message=message)