2022-01-25 10:23:22 +00:00
|
|
|
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")
|
2023-08-04 14:14:14 +00:00
|
|
|
assert msg is None
|
2022-01-25 10:23:22 +00:00
|
|
|
|
2023-04-25 11:42:08 +00:00
|
|
|
msg = is_valid_address("test@")
|
2023-08-04 14:14:14 +00:00
|
|
|
assert isinstance(msg, str)
|
2022-01-25 10:23:22 +00:00
|
|
|
|
2023-04-25 11:42:08 +00:00
|
|
|
msg = is_valid_address("test")
|
2023-08-04 14:14:14 +00:00
|
|
|
assert isinstance(msg, str)
|