| Server IP : 121.121.20.254 / Your IP : 216.73.217.141 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/test/test_email/__pycache__/ |
Upload File : |
R
>lqjC c � � ] PH s ] PHs] QHGsGs ] QHGs ] QHGs ] QH$G
s
Gs Q s\ Q Q\
2 2 s
\Q6X c \O 2 P! P! ) � )�policy�message_from_bytes)�EmailMessage)�BytesGenerator)�
TestEmailBase�parameterizec �X � U O 2 oU] * O 2 % f [ Q2 g[ U] * 2 [ U] * O 2 2 *
oQO STt, tF D o[ U2 U6� c V2P LQMJ to2 ! t toh )r zFirst line must contain texts
� )�
splitlines�strip�
ValueError�len�lstrip�join)�bstr�lines�stripamt�xs & �3C:\Python315\\Lib\test\test_email\test_inversion.py�dedentr s� � ��O�O��E���8�>�>����7�8�8��5��8�}�s�5��8�?�?�#4�5�5�H��<�<�� ��� �Q���)��9��s� 2�� �� �� s �?B'�
B'c
� ` � \ sQ s]s n \O
s\sQ sQ\ Q2 1Q\ Q2 1-s
Q\ QQ5 Q\ QQ Q
5 Q\ QQQ
5 -sQ
s
QsU sP! )�
TestInversionc �� � [ U[ O Q 5 o[ O 2 o[ U2 oUO
U2 U O UO 2 U2 P! )�r ) r r �SMTP�io�BytesIOr �flatten�assertEqual�getvalue)�self�msg�m�b�gs && r �msg_as_input�TestInversion.msg_as_input sH � ��s�6�;�;�7���J�J�L���1��� � � �!���������s�+r �header_with_one_space_bodysl From: abc@xyz.com
X-Status:
Subject: test
foo
�header_with_invalid_dates� Date: Tue, 06 Jun 2017 27:39:33 +0600
From: abc@xyz.com
Subject: timezones
How do they work even?
�
plain_text)�payload�base64_text�base64)r* �cte�qp_textzquoted-printablec �& � U O 2 oQ UQ$ QUQ$ QUQ$ UO U1- U@ [ U2 o[ V@O Q5 oU O [ U2 U2 U O UO
2 U2 P! )�foo�From�bar�Tozpayload round trip test�Subjectr )�
_make_message�set_content�bytesr r r �get_content)r r* �kwr! r# �msg2s &&, r �payload_as_body�TestInversion.payload_as_bodyA s� � �� � �"����F����D� �2��I������&�2�&��#�J��!�!�K�K�8������t��a�(�����)�)�+�W�5r � a, This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
a% xy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy a
xy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy a
xy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy a
xy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy a
xy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy a
)�__name__�
__module__�__qualname__�__firstlineno__r �defaultr �messager% r �
msg_params�dict�payload_paramsr; �__static_attributes__�__classdictcell__)�
__classdict__s @r r r s� �� � � �^�^�F��G�,� %�v� /� (� '� #�V� -� &� %��J�( �d�#8�9��t�%7�h�G��4�!3�:L�M�
�N� 6� 6r r �__main__)r �unittest�emailr r �
email.messager �email.generatorr �test.test_emailr r r r r>