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.

18 lines
435 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():
valid, msg = is_valid_address("test@example.com")
valid.should.equal(True)
msg.should.equal(None)
valid, msg = is_valid_address("test@")
valid.should.equal(False)
msg.should.be.a(str)
valid, msg = is_valid_address("test")
valid.should.equal(False)
msg.should.be.a(str)