| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 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
>lqj� c �� � ] PH s ] PHs] QHGsGsGs ] QHGsGs ] QH$G
s
Gs Q s Q Q\
2 s
\ Q Q2 2 s Q Q
\\
2 s Q Q\\
2 s\Q
6X c \O$ 2 P! P! )� )�message_from_bytes�message_from_string�policy)�EmailMessage�MIMEPart)�
TestEmailBase�parameterizec �2 � [ [ Q U 2 P2 ! )c � � U PI! �N� )�xs &�1C:\Python315\\Lib\test\test_email\test_message.py�<lambda>�first.<locals>.<lambda>
s � ��$�� )�next�filter)�iterables &r �firstr s � ���.��9�4�@�@r c �F ` � \ sQ s]
s n \O
sQ sQ sQsU s P! )�Testc � � U O P2 oQUQ$ U O [ 2 9^tt^ 2 QUQ$ PPP2 P! ) % f h P! 9 h)� zabc@xyz�Tozxyz@abc)�_str_msg�assertRaises�
ValueError��self�ms & r �+test_error_on_setitem_if_max_count_exceeded�0Test.test_error_on_setitem_if_max_count_exceeded sB � ��M�M�"�����$��
�
�
�z�
*�
*��A�d�G� +�
*�
*�
*�s �A�A �A c � � [ [ O Q 2 [ O Q5 oU O UQ* Q2 U O UQ* Q2 U O
U[ 2 P! )a> Subject: Ayons asperges pour le =?utf-8?q?d=C3=A9jeuner?=
From: =?utf-8?q?Pep=C3=A9?= Le Pew <pepe@example.com>
To: "Penelope Pussycat" <"penelope@example.com">
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
sample text
�r �subjectu Ayons asperges pour le déjeuner�fromu Pepé Le Pew <pepe@example.com>)r �textwrap�dedentr �default�assertEqual�assertIsInstancer r s & r �/test_rfc2043_auto_decoded_and_emailmessage_used�4Test.test_rfc2043_auto_decoded_and_emailmessage_used sa � ����� 1� !� ���
)��
����9��'I�J�����6��$E�F����a��.r r )
�__name__�
__module__�__qualname__�__firstlineno__r r) r! r, �__static_attributes__�__classdictcell__��
__classdict__s @r r r
s �� � �
�^�^�F� �/� /r r c # �v ` � \ sQ s]&s n \O
sQQ>QQ=Q<Q<\O Q2 1QQ?Q<Q<\O Q2 1QQ@Q<QA\O Q2 1QQ@Q<QA\O Q 2 1Q
QBQCQA\O Q2 1QQDQEQA\O Q
2 1QQ@Q<QA\O Q2 1QQFQCQA\O Q2 1QQGQEQA\O Q2 1QQHQIQJ\O Q2 1QQKQIQJ\O Q2 1QQLQIQJ\O Q2 1QQ?Q<Q<\O Q2 1QQBQCQA\O Q2 1-sQ s Q s
Q s Q! Q"2 sQ# s
Q$ sQ% sQ& sQMsQ' sQ( sQ) sQ* sQ+ sQ, s Q- Q.2 sQ/ s Q0 Q12 sQ2 sQ3 sQ4 sQ5 sQ6 sQ7QNQ8QOQ9QPQ:QQ-s Q; s!Q<s"U s#P! )R�TestEmailMessageBase�
empty_message�non_mime_plainzV To: foo@example.com
simple text body
�
mime_non_textz� To: foo@example.com
MIME-Version: 1.0
Content-Type: image/jpg
bogus body.
�plain_html_alternativea� To: foo@example.com
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="==="
preamble
--===
Content-Type: text/plain
simple body
--===
Content-Type: text/html
<p>simple body</p>
--===--
�plain_html_mixeda� To: foo@example.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="==="
preamble
--===
Content-Type: text/plain
simple body
--===
Content-Type: text/html
<p>simple body</p>
--===--
�plain_html_attachment_mixeda� To: foo@example.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="==="
--===
Content-Type: text/plain
simple body
--===
Content-Type: text/html
Content-Disposition: attachment
<p>simple body</p>
--===--
�html_text_attachment_mixeda� To: foo@example.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="==="
--===
Content-Type: text/plain
Content-Disposition: AtTaChment
simple body
--===
Content-Type: text/html
<p>simple body</p>
--===--
�!html_text_attachment_inline_mixeda� To: foo@example.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="==="
--===
Content-Type: text/plain
Content-Disposition: InLine
simple body
--===
Content-Type: text/html
Content-Disposition: inline
<p>simple body</p>
--===--
�relateda� To: foo@example.com
MIME-Version: 1.0
Content-Type: multipart/related; boundary="==="; type=text/html
--===
Content-Type: text/html
<p>simple body</p>
--===
Content-Type: image/jpg
Content-ID: <image1>
bogus data
--===--
�related_with_starta To: foo@example.com
MIME-Version: 1.0
Content-Type: multipart/related; boundary="==="; type=text/html;
start="<body>"
--===
Content-Type: text/html
Content-ID: <include>
useless text
--===
Content-Type: text/html
Content-ID: <body>
<p>simple body</p>
<!--#include file="<include>"-->
--===--
�mixed_alternative_plain_relateda� To: foo@example.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="==="
--===
Content-Type: multipart/alternative; boundary="+++"
--+++
Content-Type: text/plain
simple body
--+++
Content-Type: multipart/related; boundary="___"
--___
Content-Type: text/html
<p>simple body</p>
--___
Content-Type: image/jpg
Content-ID: <image1@cid>
bogus jpg body
--___--
--+++--
--===
Content-Type: image/jpg
Content-Disposition: attachment
bogus jpg body
--===
Content-Type: image/jpg
Content-Disposition: AttacHmenT
another bogus jpg body
--===--
�$mixed_related_alternative_plain_htmla� To: foo@example.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="==="
--===
Content-Type: multipart/related; boundary="+++"
--+++
Content-Type: multipart/alternative; boundary="___"
--___
Content-Type: text/plain
simple body
--___
Content-Type: text/html
<p>simple body</p>
--___--
--+++
Content-Type: image/jpg
Content-ID: <image1@cid>
bogus jpg body
--+++--
--===
Content-Type: image/jpg
Content-Disposition: attachment
bogus jpg body
--===
Content-Type: image/jpg
Content-Disposition: attachment
another bogus jpg body
--===--
�0mixed_related_alternative_plain_html_wrong_ordera� To: foo@example.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="==="
--===
Content-Type: multipart/related; boundary="+++"
--+++
Content-Type: image/jpg
Content-ID: <image1@cid>
bogus jpg body
--+++
Content-Type: multipart/alternative; boundary="___"
--___
Content-Type: text/plain
simple body
--___
Content-Type: text/html
<p>simple body</p>
--___--
--+++--
--===
Content-Type: image/jpg
Content-Disposition: attachment
bogus jpg body
--===
Content-Type: image/jpg
Content-Disposition: attachment
another bogus jpg body
--===--
�message_rfc822z� To: foo@example.com
MIME-Version: 1.0
Content-Type: message/rfc822
To: bar@example.com
From: robot@examp.com
this is a message body.
�mixed_text_message_rfc822a� To: foo@example.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="==="
--===
Content-Type: text/plain
Your message has bounced, sir.
--===
Content-Type: message/rfc822
To: bar@example.com
From: robot@examp.com
this is a message body.
--===--
c �� � U O U2 o[ UO 2 2 oSTt, tF D pwe PLVg* MJ oo] o ]o
]oU O UO 2 [ U2 2 U O UO QQ5 [ U2 2 U O UO QQ5 [ V�U
]* 2 2 U O UO QQ5 [ V�* V�* ,2 2 U O UO QQ5 [ V�U]* 2 2 U O UO Q,Q5 V�* 2 U O UO Q,Q5 V�* 2 U O UO Q,Q5 V�* 2 U O UO Q Q5 [ V�U
]*
P/* 2 2 U O UO Q
Q5 [ V�* V�* ,2 2 U O UO QQ5 [ V�PP/* 2 2 U O UO QQ5 [ UPPP/* 2 2 U O UO Q
Q5 [ V�* V�* V�* ,2 2 P! t toh )Nr@ �html�plain)�preferencelist)r@ rH rI )r@ rH )r@ rI )rH rI )rI rH )rI r@ )rH r@ )rI rH r@ )rH rI r@ )r �list�walkr* �get_bodyr )r �
body_parts�attachments�parts�msgr �allparts�n�expectedr@ rH rI s &&&&& r �message_as_get_body�(TestEmailMessageBase.message_as_get_body� so � ��M�M�#��������>��@J�K�
�1�I�D�8�;�6�
��K���A�T�q�u��������u�X��7������� 4D�� E��x�� *�
������3F��G��x��Q��7�8� :�������3G��H��� 1�8�?�C�D� F�������3D��E��x�U�1�W�5�6� 8�������I�;��?�!�*� ,�������F�8��<�h�n�M�������G�9��=�x��O�������3D��E��x�d�1�f�R��8�9� ;�������3G��H�����1B�C�D� F�������3F��G��x��b��1�2� 4�������3O��P��x��"��~�.� 0�������3O��P���� (�� (� 1� 3� 4� 5��1 Ls
� K�Kc �� � U O U2 o[ UO 2 2 oSTt, tF D pvU* MJ
ooU O [ UO 2 2 U2 P! t toh r )r rK rL r* �iter_attachments)r rN rO rP rQ r rR rS s &&&&& r �message_as_iter_attachment�/TestEmailMessageBase.message_as_iter_attachment� sZ � ��M�M�#��������>��,7�8�K�q��{�{�K��8�����a�0�0�2�3�[�A�� 9s �A/c � � Q oU O U2 o[ UO 2 2 oSTt, tF D p�U* MJ
ooU U2 % c [ UO 2 2 L, o U O V�2 P! t toh )c � � Q U 7 ! )zContent-Type: multipartr )rQ s &r �_is_multipart_msg�ETestEmailMessageBase.message_as_iter_parts.<locals>._is_multipart_msg� s
� �,��3�3r )r rK rL �
iter_partsr* )
r rN rO rP rQ r] r rR rS r_ s
&&&&& r �message_as_iter_parts�*TestEmailMessageBase.message_as_iter_parts� sm � � 4�
�M�M�#��������>��&+�,�e��!���e��,�->�s�-C�-C�T�!�,�,�.�)��
�����+�� -s �Bc �. ` � \ sQ sQs n Q sQ sQsU sP! )�(TestEmailMessageBase._TestContentManager�� c � � VU1! r r �r rQ �args�kws &&*,r �get_content�4TestEmailMessageBase._TestContentManager.get_content� s � ��b�=� r c �, � Vm V m V0m P! r )rQ rg rh rf s &&*,r �set_content�4TestEmailMessageBase._TestContentManager.set_content� s � ��H��I��Gr )rg rh rQ )r. r/ r0 r1 ri rl r2 r3 r4 s @r �_TestContentManagerrc � s �� � � !� � r rn c �D � U O P2 oU O 2 oU O UO UQ5 UQ- 12 UO QU]]Q5 v q4oU O V12 U O UQ2 U O U[ ]]Q5 2 P! �r ��content_manager�foo)rr �bar�k�rt ru r �rs )r rn r* ri �dict)r r �cmrQ rg rh s & r �test_get_content_with_cm�-TestEmailMessageBase.test_get_content_with_cm� s� � ��M�M�"���
�
%�
%�
'��������r��:�Q��B�K�H��
�
�e�R�Q�!�
�L�
��2����� �����x�(�����T�a�1�-�.r c �~ � [ O O U O 2 Q 5 oU O PUQ5 oU O UO
2 UQ- 12 UO
Q]]Q5 v q4oU O V22 U O UQ2 U O U[ ]]Q5 2 P! �rq r$ rs rv r rw )r r) �clonern r r* ri rx )r �pr rQ rg rh s & r �-test_get_content_default_cm_comes_from_policy�BTestEmailMessageBase.test_get_content_default_cm_comes_from_policy s� � ��N�N� � ��1I�1I�1K� �L���M�M�"�Q�M�'���������1�b�"�+�6��
�
�e��a�
�8�
��2����� �����x�(�����T�a�1�-�.r c � � U O P2 oU O 2 oUO UQ5 U O UO U2 U O UO
Q2 U O UO - 2 UO QU]]Q5 U O UO U2 U O UO
Q2 U O UO [ ]]Q5 2 P! rp )r rn rl r* rQ rg rh rx �r r ry s & r �test_set_content_with_cm�-TestEmailMessageBase.test_set_content_with_cm
s� � ��M�M�"���
�
%�
%�
'�� �
�
�b�
�)��������#�������"�%��������#� �
�
�e�R�Q�!�
�<��������#�������(�+���������a� 0�1r c �< � U O 2 o[ O O UQ 5 oU O PUQ5 oUO 2 U O
UO U2 U O
UO Q2 U O
UO - 2 UO Q]]Q5 U O
UO U2 U O
UO Q2 U O
UO [ ]]Q5 2 P! r} )rn r r) r~ r rl r* rQ rg rh rx )r ry r r s & r �-test_set_content_default_cm_comes_from_policy�BTestEmailMessageBase.test_set_content_default_cm_comes_from_policy s� � �
�
%�
%�
'���N�N� � �� �4���M�M�"�Q�M�'�� �
�
���������#�������"�%��������#� �
�
�e��a�
�(��������#�������(�+���������a� 0�1r c �l � U O 2 oPoQQ,oUQ6w c UO Q2 UQ6X c&