[ 110s] ______________________ test_send_message_smtputf8_sender _______________________
[ 110s]
[ 110s] smtp_client = <aiosmtplib.smtp.SMTP object at 0xb485426c>
[ 110s] smtpd_server_smtputf8 = <Server sockets=[<socket.socket fd=15, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 52703)>]>
[ 110s] message = <email.mime.multipart.MIMEMultipart object at 0xb4ac66cc>
[ 110s] received_commands = [('EHLO', 'lamb56'), ('MAIL', 'séndër@exåmple.com', ['SIZE=345', 'SMTPUTF8', 'BODY=8BITMIME']), ('RCPT', '[email protected]', []), ('DATA',), ('QUIT',)]
[ 110s] received_messages = [<email.message.Message object at 0xb64846cc>]
[ 110s]
[ 110s] async def test_send_message_smtputf8_sender(
[ 110s] smtp_client, smtpd_server_smtputf8, message, received_commands, received_messages
[ 110s] ):
[ 110s] del message["From"]
[ 110s] message["From"] = "séndër@exåmple.com"
[ 110s]
[ 110s] async with smtp_client:
[ 110s] errors, response = await smtp_client.send_message(message)
[ 110s]
[ 110s] assert not errors
[ 110s] assert response != ""
[ 110s]
[ 110s] assert received_commands[1][0] == "MAIL"
[ 110s] assert received_commands[1][1] == message["From"]
[ 110s] > assert received_commands[1][2] == ["SIZE=372", "SMTPUTF8", "BODY=8BITMIME"]
[ 110s] E AssertionError: assert ['SIZE=345', ...ODY=8BITMIME'] == ['SIZE=372', '...ODY=8BITMIME']
[ 110s] E At index 0 diff: 'SIZE=345' != 'SIZE=372'
[ 110s] E Full diff:
[ 110s] E - ['SIZE=345', 'SMTPUTF8', 'BODY=8BITMIME']
[ 110s] E ? ^^
[ 110s] E + ['SIZE=372', 'SMTPUTF8', 'BODY=8BITMIME']
[ 110s] E ? ^^
[ 110s]
[ 110s] tests/test_sendmail.py:288: AssertionError