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.7/test/test_email/__pycache__/test_pickleable.cpython-37.pyc
B

��g�	�@s�ddlZddlZddlZddlZddlZddlZddlmZddlmZddl	m
Z
mZeGdd�de
��ZeGdd�de
��Z
ed	kr�e��dS)
�N)�policy)�HeaderRegistry)�
TestEmailBase�parameterizec@s:eZdZe�Zedd�Zddddd�Zdd	�Zd
d�ZdS)
�TestPickleCopyHeader�subjectzthis is a test)rzthis is a test)�fromzfrodo@mordor.net)�toza: k@b.com, y@z.com;, j@f.com)�datezTue, 29 May 2012 09:24:26 +1000)rrr	r
cCs.|�||�}t�|�}|�t|�t|��dS)N)�header_factory�copy�deepcopy�assertEqual�str)�self�name�value�header�h�r�;/usr/local/lib/python3.7/test/test_email/test_pickleable.py�header_as_deepcopys
z'TestPickleCopyHeader.header_as_deepcopycCsR|�||�}x@ttjd�D].}t�||�}t�|�}|�t|�t|��qWdS)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.
        )rZparsedZcreatedzTue, 29 May 2012 09:24:26 +1000rZDatezfrodo@mordor.netZFromzbilbo@underhill.orgZTo�helpZSubjectzI think I forgot the ring.cCs"t�|�}|�|��|���dS)N)rr
r�	as_string)r�msg�msg2rrr�msg_as_deepcopy@s
z%TestPickleCopyMessage.msg_as_deepcopycCsFx@ttjd�D].}t�||�}t�|�}|�|��|���qWdS)Nr)rrrrrrr&)rr'rrr(rrr�
msg_as_pickleDs
z#TestPickleCopyMessage.msg_as_pickleN)r!r"r#Z
msg_params�emailZmessage_from_string�textwrap�dedentr�default�messageZMessageZset_payloadr)r*rrrrr$'sr$�__main__)Zunittestr,rrr+Z
email.messagerZemail.headerregistryrZtest.test_emailrrrr$r!�mainrrrr�<module>s#