moto/tests/test_ses/test_ses_utils.py

13 lines
282 B
Python
Raw Normal View History

from moto.ses.utils import is_valid_address
def test_is_valid_address():
2023-04-25 11:42:08 +00:00
msg = is_valid_address("test@example.com")
assert msg is None
2023-04-25 11:42:08 +00:00
msg = is_valid_address("test@")
assert isinstance(msg, str)
2023-04-25 11:42:08 +00:00
msg = is_valid_address("test")
assert isinstance(msg, str)