moto/tests/test_ses/test_ses_utils.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
325 B
Python
Raw Normal View History

import sure # noqa # pylint: disable=unused-import
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")
msg.should.equal(None)
2023-04-25 11:42:08 +00:00
msg = is_valid_address("test@")
msg.should.be.a(str)
2023-04-25 11:42:08 +00:00
msg = is_valid_address("test")
msg.should.be.a(str)