HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/test/test_email/__pycache__/test_pickleable.cpython-310.pyc
o

�i�	�@s�ddlZddlZddlZddlZddlZddlZddlmZddlmZddl	m
Z
mZeGdd�de
��ZeGdd�de
��Z
ed	krJe��dSdS)
�N��policy)�HeaderRegistry)�
TestEmailBase�parameterizec@s:eZdZe�Zedd�Zddddd�Zdd	�Zd
d�ZdS)
�TestPickleCopyHeader�subject�this is a test)rr	)�from�frodo@mordor.net)�toza: k@b.com, y@z.com;, j@f.com)�date�Tue, 29 May 2012 09:24:26 +1000)rr
rr
cCs.|�||�}t�|�}|�t|�t|��dS�N)�header_factory�copy�deepcopy�assertEqual�str)�self�name�value�header�h�r�</usr/local/lib/python3.10/test/test_email/test_pickleable.py�header_as_deepcopys
z'TestPickleCopyHeader.header_as_deepcopycCsN|�||�}ttjd�D]}t�||�}t�|�}|�t|�t|��q
dS�N�)r�range�pickle�HIGHEST_PROTOCOL�dumps�loadsrr)rrrr�proto�prrrr�header_as_pickles
�z%TestPickleCopyHeader.header_as_pickleN)	�__name__�
__module__�__qualname__rrZunstructuredZ
header_paramsrr&rrrrrs
�rc@s�eZdZiZeje�d�ej	d�fed<ej
jej	d�fed<deddd<deddd	<d
eddd<deddd
<edd�d�dd�Z
dd�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�createdrrZDaterZFromzbilbo@underhill.orgZTo�helpZSubjectzI think I forgot the ring.cCs"t�|�}|�|��|���dSr)rrr�	as_string)r�msg�msg2rrr�msg_as_deepcopy@s
z%TestPickleCopyMessage.msg_as_deepcopycCsBttjd�D]}t�||�}t�|�}|�|��|���qdSr)rr r!r"r#rr.)rr/r$r%r0rrr�
msg_as_pickleDs

�z#TestPickleCopyMessage.msg_as_pickleN)r'r(r)Z
msg_params�emailZmessage_from_string�textwrap�dedentr�default�messageZMessageZset_payloadr1r2rrrrr*'s�	r*�__main__)Zunittestr4rr r3Z
email.messagerZemail.headerregistryrZtest.test_emailrrrr*r'�mainrrrr�<module>s #�