def test_email(): assert prompt.email(empty=True) is None assert prompt.email(default='*****@*****.**') is '*****@*****.**'
def test_email(input_patch): input_patch.do("*****@*****.**") assert prompt.email() == "*****@*****.**"
def test_email(): assert prompt.email(empty=True) is None