Your IP : 216.73.216.213
3
� f � @ s| d Z ddlZddlZddlmZmZ ddlmZ ddlm Z ddl
mZmZ dd� Z
eG d d
� d
e��Zedkrxej� dS )z�Test the parser and generator are inverses.
Note that this is only strictly true if we are parsing RFC valid messages and
producing RFC valid messages.
� N)�policy�message_from_bytes)�EmailMessage)�BytesGenerator)�
TestEmailBase�parameterizec sP | j � }|d j� std��t|d �t|d j� � � dj� fdd�|D ��S )Nr zFirst line must contain texts
c s( g | ] }t |�� kr |� d � nd�qS )N� )�len)�.0�x)�stripamt� �C/opt/alt/python36/lib64/python3.6/test/test_email/test_inversion.py�
<listcomp> s zdedent.<locals>.<listcomp>)�
splitlines�strip�
ValueErrorr �lstrip�join)Zbstr�linesr
)r r �dedent s
r c @ sr e Zd ZejZeZdd� Zded�fiZ e
dd d�e
dd d
d dd
�e
dd d
d dd
�d�Zdd� ZdS )�
TestInversionc C s<