mirror of
https://github.com/simple-login/app.git
synced 2024-11-15 05:07:33 +08:00
8 lines
322 B
Python
8 lines
322 B
Python
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") == ""
|