def test_secret(): assert prompt.secret(empty=True) is None assert prompt.secret(default='shh') is 'shh'
def test_secret(input_patch): input_patch.do("foo123") assert prompt.secret() == "foo123"
def test_secret(): assert prompt.secret(empty=True) is None