Ejemplo n.º 1
0
def test_receiver(receiver):
    sender = Sender()

    result = sender.send(receiver, '*****@*****.**', 'Some subject',
                         'Some a bit short description')

    assert receiver in result
Ejemplo n.º 2
0
def test_create_email_sender():
    sender = Sender()
    assert sender is not None
Ejemplo n.º 3
0
def test_sender(receiver):
    sender = Sender()

    with pytest.raises(EmailInvalid):
        sender.send(receiver, '*****@*****.**', 'Some subject',
                    'Some a bit short description')
Ejemplo n.º 4
0
def test_shipper_invalid(shipper):
    sender = Sender()
    with pytest.raises(InvalidEmail):
        sender.send(shipper, '*****@*****.**', 'Python Pro Course',
                    'Learning about Python for backend applications.')
Ejemplo n.º 5
0
def test_shipper(shipper):
    sender = Sender()
    result = sender.send(shipper, '*****@*****.**', 'Python Pro Course',
                         'Learning about Python for backend applications.')
    assert shipper in result
Ejemplo n.º 6
0
def test_sender_invalid(recipient):
    sender = Sender()
    with pytest.raises(InvalidEmail):
        sender.send(recipient, '*****@*****.**',
                    'Cursos Python Pro', 'Turma aberta com sucesso. ')
Ejemplo n.º 7
0
def test_sender(recipient):
    sender = Sender()
    result = sender.send(recipient, '*****@*****.**',
                         'Cursos Python Pro', 'Turma aberta com sucesso. ')
    assert recipient in result