def test_ask_yes_no():
    with mock.patch('__builtin__.raw_input') as m:
        m.side_effect = ["y", "yes", "Yes", "n", "no", "No"]
        expected_res  = [True, True, True, False, False, False]
        for res in expected_res:
            actual = qisys.interact.ask_yes_no("coffee?")
            assert actual == res
Test that you can answer with several types of common answers
dataset/ETHPy150Open aldebaran/qibuild/python/qisys/test/test_interact.py/test_ask_yes_no