moto/tests/test_ses/test_ses_utils.py
2023-04-25 11:42:08 +00:00

15 lines
325 B
Python

import sure # noqa # pylint: disable=unused-import
from moto.ses.utils import is_valid_address
def test_is_valid_address():
msg = is_valid_address("test@example.com")
msg.should.equal(None)
msg = is_valid_address("test@")
msg.should.be.a(str)
msg = is_valid_address("test")
msg.should.be.a(str)