app-MAIL-temp/tests/test_email_handler.py

9 lines
322 B
Python
Raw Normal View History

2019-11-21 13:42:48 +01:00
from email_handler import get_email_name
def test_get_email_name():
assert get_email_name("First Last <ab@cd.com>") == "First Last"
assert get_email_name("First Last<ab@cd.com>") == "First Last"
assert get_email_name(" First Last <ab@cd.com>") == "First Last"
assert get_email_name("ab@cd.com") == ""