def test_ask_yes_no_default():
    with mock.patch('__builtin__.raw_input') as m:
        m.side_effect = ["", ""]
        assert qisys.interact.ask_yes_no("coffee?", default=True)  is True
        assert qisys.interact.ask_yes_no("coffee?", default=False) is False
Test that just pressing enter returns the default value
dataset/ETHPy150Open aldebaran/qibuild/python/qisys/test/test_interact.py/test_ask_yes_no_default