@mock_streams('stdout')
@with_patched_input(p)
def test_prompt_with_default():
    """
    prompt() appends given default value plus one space on either side
    """
    s = "This is my prompt"
    d = "default!"
    prompt(s, default=d)
    eq_(sys.stdout.getvalue(), (s, d) % "%s [%s] ")


#
# run()/sudo()
#
dataset/ETHPy150Open fabric/fabric/tests/test_operations.py/test_prompt_with_default/swapped operands of `%`