Your IP : 216.73.216.147
��Yf�% � @ s� d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z d d l m Z m
Z
d d l m Z d d l m
Z
m Z e Gd d � d � � Z Gd d
� d
e e
� Z Gd d � d e e
� Z e d
k r� e j � d S)� N)�message_from_string�message_from_bytes)�EmailMessage)� Generator�BytesGenerator)�policy)�
TestEmailBase�parameterizec @ s e Z d Z e j Z d d d � Z d e j d � d e j d � d e j d � i Z e d e d
<e j � Z
d e
d <d e
d
<d
d � e D� Z d d � Z d d � Z
d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)!�TestGeneratorBaseNc C s. | d k r | j n | } | j | d | �S)Nr )r �msgfunc)�self�msgr � r �C/opt/alt/python35/lib64/python3.5/test/test_email/test_generator.py�msgmaker s zTestGeneratorBase.msgmakerr af To: whom_it_may_concern@example.com
From: nobody_you_want_to_know@example.com
Subject: We the willing led by the unknowing are doing the
impossible for the ungrateful. We have done so much for so long with so little
we are now qualified to do anything with nothing.
None
�( a� To: whom_it_may_concern@example.com
From:
nobody_you_want_to_know@example.com
Subject: We the willing led by the
unknowing are doing the impossible for
the ungrateful. We have done so much
for so long with so little we are now
qualified to do anything with nothing.
None
� a� To: whom_it_may_concern@example.com
From: nobody_you_want_to_know@example.com
Subject: We the
willing led by the
unknowing are doing
the impossible for
the ungrateful. We
have done so much
for so long with so
little we are now
qualified to do
anything with
nothing.
None
�d a To: whom_it_may_concern@example.com
From: nobody_you_want_to_know@example.com
Subject: We the willing led by the unknowing are doing the impossible for the ungrateful. We have done so much for so long with so little we are now qualified to do anything with nothing.
None
a To: whom_it_may_concern@example.com
From: nobody_you_want_to_know@example.com
Subject: We the willing led by the unknowing are doing the impossible for the ungrateful. We have
done so much for so long with so little we are now qualified to do anything with nothing.
None
c C s g | ] } | � q Sr r )�.0�nr r r �
<listcomp>U s zTestGeneratorBase.<listcomp>c C s� | j | j | j d � � } | j � } | j | d | d | j �} | j | � | j | j � | j | j | � � d S)Nr �maxheaderlenr ) r �typ�refold_long_expected�ioclass�genclassr �flatten�assertEqual�getvalue)r r r
�s�gr r r � length_as_maxheaderlen_parameterW s
z2TestGeneratorBase.length_as_maxheaderlen_parameterc C s� | j | j | j d � � } | j � } | j | d | j j d | � �} | j | � | j | j � | j | j | � � d S)Nr r �max_line_length)
r r r r r r �cloner r r )r r r
r r r r r � length_as_max_line_length_policy^ s
$
z2TestGeneratorBase.length_as_max_line_length_policyc C s� | j | j | j d � � } | j � } | j | d | d | j j d d � �} | j | � | j | j � | j | j | � � d S)Nr r r r"