Beispiel #1
0
def test_generate_email_with_name():
    email = '*****@*****.**'
    name = 'Ivan'
    generated_email = Sendgrid._generate_email(email=email, name=name)
    assert generated_email == {'email': '*****@*****.**', 'name': 'Ivan'}
Beispiel #2
0
def test_generate_email_no_name():
    email = '*****@*****.**'
    generated_email = Sendgrid._generate_email(email=email)
    assert generated_email == {'email': '*****@*****.**'}