from email_handler import get_email_name, get_email_part def test_get_email_name(): assert get_email_name("First Last ") == "First Last" assert get_email_name("First Last") == "First Last" assert get_email_name(" First Last ") == "First Last" assert get_email_name("ab@cd.com") == "" def test_get_email_part(): assert get_email_part("First Last ") == "ab@cd.com" assert get_email_part("First Last") == "ab@cd.com" assert get_email_part(" First Last ") == "ab@cd.com" assert get_email_part("ab@cd.com") == "ab@cd.com"