HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/test/test_email/__pycache__/test_pickleable.cpython-311.pyc
�

��VcA
����ddlZddlZddlZddlZddlZddlZddlmZddlmZddl	m
Z
mZeGd�de
����ZeGd�de
����Z
ed	krej��dSdS)
�N��policy)�HeaderRegistry)�
TestEmailBase�parameterizec�T�eZdZe��Zedd��Zddddd�Zd�Zd	�Zd
S)�TestPickleCopyHeader�subject�this is a test)r
r)�from�frodo@mordor.net)�toza: k@b.com, y@z.com;, j@f.com)�date�Tue, 29 May 2012 09:24:26 +1000)r
rrrc��|�||��}tj|��}|�t	|��t	|����dS�N)�header_factory�copy�deepcopy�assertEqual�str)�self�name�value�header�hs     �3D:\Python311\Lib\test\test_email\test_pickleable.py�header_as_deepcopyz'TestPickleCopyHeader.header_as_deepcopysN���$�$�T�5�1�1���M�&�!�!������Q����V���-�-�-�-�-�c�"�|�||��}ttjdz��D][}tj||��}tj|��}|�t|��t|�����\dS�N�)r�range�pickle�HIGHEST_PROTOCOL�dumps�loadsrr)rrrr�proto�prs       r�header_as_picklez%TestPickleCopyHeader.header_as_pickles����$�$�T�5�1�1���6�2�Q�6�7�7�	2�	2�E���V�U�+�+�A���Q���A����S��V�V�S��[�[�1�1�1�1�	2�	2rN)	�__name__�
__module__�__qualname__rr�unstructured�
header_paramsrr*�rrr	r	sm������$�^�%�%�N�!�>�)�-=�>�>�L�1�2�?�A�	
�
�M�.�.�.�
2�2�2�2�2rr	c��eZdZiZejejd��ej	���fed<ej
�ej	���fed<deddd<deddd	<d
eddd<deddd
<edd�d��d�Z
d�ZdS)�TestPickleCopyMessagez�        Date: Tue, 29 May 2012 09:24:26 +1000
        From: frodo@mordor.net
        To: bilbo@underhill.org
        Subject: help

        I think I forgot the ring.
        r�parsed�createdrr�Dater
�Fromzbilbo@underhill.org�To�help�SubjectzI think I forgot the ring.c��tj|��}|�|���|�����dSr)rrr�	as_string)r�msg�msg2s   r�msg_as_deepcopyz%TestPickleCopyMessage.msg_as_deepcopy@s?���}�S�!�!��������)�)�3�=�=�?�?�;�;�;�;�;rc�
�ttjdz��D]e}tj||��}tj|��}|�|���|������fdSr!)r#r$r%r&r'rr;)rr<r(r)r=s     r�
msg_as_picklez#TestPickleCopyMessage.msg_as_pickleDsx���6�2�Q�6�7�7�	@�	@�E���S�%�(�(�A��<��?�?�D����T�^�^�-�-�s�}�}���?�?�?�?�	@�	@rN)r+r,r-�
msg_params�email�message_from_string�textwrap�dedentr�default�message�Message�set_payloadr>r@r0rrr2r2's�������J�6�E�5�o�h�o�G�7
�7
��^�%�%�%�'�J�x��#�]�2�2�&�.�2�I�I�K�J�y��'H�J�y��!��V�$�'9�J�y��!��V�$�%:�J�y��!��T�"�*0�J�y��!��Y�'��y��!��(�(�)E�F�F�F�<�<�<�@�@�@�@�@rr2�__main__)�unittestrDrr$rB�
email.messager�email.headerregistryr�test.test_emailrrr	r2r+�mainr0rr�<module>rPs��������������
�
�
�
���������������/�/�/�/�/�/�7�7�7�7�7�7�7�7��2�2�2�2�2�=�2�2���2�4� @� @� @� @� @�M� @� @��� @�F�z����H�M�O�O�O�O�O��r