def test_receiver(receiver): sender = Sender() result = sender.send(receiver, '*****@*****.**', 'Some subject', 'Some a bit short description') assert receiver in result
def test_create_email_sender(): sender = Sender() assert sender is not None
def test_sender(receiver): sender = Sender() with pytest.raises(EmailInvalid): sender.send(receiver, '*****@*****.**', 'Some subject', 'Some a bit short description')
def test_shipper_invalid(shipper): sender = Sender() with pytest.raises(InvalidEmail): sender.send(shipper, '*****@*****.**', 'Python Pro Course', 'Learning about Python for backend applications.')
def test_shipper(shipper): sender = Sender() result = sender.send(shipper, '*****@*****.**', 'Python Pro Course', 'Learning about Python for backend applications.') assert shipper in result
def test_sender_invalid(recipient): sender = Sender() with pytest.raises(InvalidEmail): sender.send(recipient, '*****@*****.**', 'Cursos Python Pro', 'Turma aberta com sucesso. ')
def test_sender(recipient): sender = Sender() result = sender.send(recipient, '*****@*****.**', 'Cursos Python Pro', 'Turma aberta com sucesso. ') assert recipient in result