mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 01:40:38 +01: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") == ""
|