ó
�wÛjc           @   sŒ  d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l m	 Z	 d  d l
 m Z y d  d l m Z Wn! e k
 r· d  d l m Z n Xd  d l Z d  d l m Z d  d l m Z m Z m Z d  d l m Z m Z d  d l m Z m Z d  d	 l m Z d  d
 l m  Z  d  d l! m" Z" d  d l# m$ Z$ d  d l% m& Z& d  d l' m( Z( d  d l) m* Z* d  d l m+ Z+ d  d l m, Z, d  d l m- Z- d  d l m. Z. d  d l m/ Z/ d  d l m0 Z0 d  d l1 m2 Z2 m3 Z3 m4 Z4 d  d l5 m6 Z7 d Z8 d Z9 d Z: d d „ Z; d e j< f d „  ƒ  YZ= d e= f d  „  ƒ  YZ> d! e j< f d" „  ƒ  YZ? d# e= f d$ „  ƒ  YZ@ d% e j< f d& „  ƒ  YZA d' e j< f d( „  ƒ  YZB d) e j< f d* „  ƒ  YZC d+ e j< f d, „  ƒ  YZD d- e= f d. „  ƒ  YZE d/ e= f d0 „  ƒ  YZF d1 e j< f d2 „  ƒ  YZG d3 e= f d4 „  ƒ  YZH d5 e= f d6 „  ƒ  YZI d7 e= f d8 „  ƒ  YZJ d9 e= f d: „  ƒ  YZK d; e= f d< „  ƒ  YZL d= e= f d> „  ƒ  YZM d? e j< f d@ „  ƒ  YZN dA e j< f dB „  ƒ  YZO dC e j< f dD „  ƒ  YZP dE e= f dF „  ƒ  YZQ dG e= f dH „  ƒ  YZR dI e= f dJ „  ƒ  YZS dK „  ZT dL „  ZU dM „  ZV eW dN k rˆe jX dO dP ƒ n  d S(Q   iÿÿÿÿN(   t   StringIO(   t   choice(   t   Thread(   t   Charset(   t   Headert   decode_headert   make_header(   t   Parsert   HeaderParser(   t	   Generatort   DecodedGenerator(   t   Message(   t	   MIMEAudio(   t   MIMEText(   t	   MIMEImage(   t   MIMEBase(   t   MIMEMessage(   t   MIMEMultipart(   t   Utils(   t   Errors(   t   Encoders(   t	   Iterators(   t
   base64MIME(   t
   quopriMIME(   t   findfilet   run_unittestt   start_threads(   t   __file__s   
t    t    t   rc         C   s1   t  j j t  j j t ƒ d |  ƒ } t | | ƒ S(   Nt   data(   t   ost   patht   joint   dirnamet   landmarkt   open(   t   filenamet   modeR!   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   openfile2   s    $t   TestEmailBasec           B   s   e  Z d  „  Z d „  Z RS(   c         C   s}   | | k ry t  | ƒ } t  | ƒ } t j | j ƒ  | j ƒ  ƒ } t ƒ  } | t It j | ƒ IJ|  j | j ƒ  ‚ n  d S(   s6   Like assertEqual except use ndiff for readable output.N(	   t   strt   difflibt   ndifft
   splitlinesR    t   NLR"   t   failureExceptiont   getvalue(   t   selft   firstt   secondt   sfirstt   ssecondt   difft   fp(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   ndiffAssertEqual:   s    	c         C   s7   t  t | ƒ ƒ } z t j | ƒ } Wd  | j ƒ  X| S(   N(   R(   R   t   emailt   message_from_filet   close(   R1   R&   R7   t   msg(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   _msgobjD   s
    (   t   __name__t
   __module__R8   R=   (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR)   9   s   	
t   TestMessageAPIc           B   s  e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d  „  Z" d! „  Z# d" „  Z$ d# „  Z% d$ „  Z& d% „  Z' d& „  Z( d' „  Z) d( „  Z* d) „  Z+ d* „  Z, d+ „  Z- d, „  Z. d- „  Z/ d. „  Z0 d/ „  Z1 d0 „  Z2 d1 „  Z3 d2 „  Z4 d3 „  Z5 d4 „  Z6 d5 „  Z7 d6 „  Z8 d7 „  Z9 d8 „  Z: d9 „  Z; RS(:   c         C   sT   |  j  } |  j d ƒ } | | j d ƒ d d d g ƒ | | j d d ƒ d ƒ d  S(   Ns
   msg_20.txtt   ccs   ccc@zzz.orgs   ddd@zzz.orgs   eee@zzz.orgt   xxs   n/a(   t   assertEqualR=   t   get_all(   R1   t   eqR<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_allP   s    	c         C   sL  |  j  } t ƒ  } | | j ƒ  d  ƒ t d ƒ } | j | ƒ | | d d ƒ | | j ƒ  d ƒ | | d d ƒ | | j d ƒ d ƒ | | d d	 ƒ | | j ƒ  j d ƒ | j d  ƒ | | j ƒ  d  ƒ | | d d ƒ t ƒ  } d
 | d <d | d <d | d <| j | ƒ | | d d
 ƒ | | d d ƒ | | d d ƒ d  S(   Ns
   iso-8859-1s   mime-versions   1.0s
   text/plains   content-types    text/plain; charset="iso-8859-1"t   charsets   content-transfer-encodings   quoted-printables   2.0s   MIME-Versions   text/x-weirds   Content-Types   quinted-puntables   Content-Transfer-Encodings"   text/x-weird; charset="iso-8859-1"(	   RC   R   t   get_charsett   NoneR   t   set_charsett   get_content_typet	   get_paramt   input_charset(   R1   RE   R<   RG   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_getset_charsetV   s,    			


c         C   sJ   |  j  } t ƒ  } | j d ƒ | | j ƒ  j d ƒ | | d d ƒ d  S(   Ns   us-asciis   content-types   text/plain; charset="us-ascii"(   RC   R   RJ   RH   RM   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_set_charset_from_stringp   s
    		c         C   sB   t  ƒ  } t d ƒ } | j d | ƒ |  j | j ƒ  j d ƒ d  S(   Ns
   iso-8859-1s   This is a string payload(   R   R   t   set_payloadRC   RH   RM   (   R1   R<   RG   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_set_payload_with_charsetw   s    	c      
   C   s¾   |  j  } |  j d ƒ } | j ƒ  } | | d  d d d d g ƒ |  j d ƒ } | j d ƒ } | | d d d d d g ƒ |  j d ƒ } | j ƒ  } | | d  d d d  d d	 d d g ƒ d  S(
   Ns
   msg_08.txts   us-asciis
   iso-8859-1s
   iso-8859-2s   koi8-rs
   msg_09.txtt   dingbats
   msg_12.txts
   iso-8859-3(   RC   R=   t   get_charsetsRI   (   R1   RE   R<   t   charsets(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_charsets}   s    	
c         C   s…   |  j  } |  j d ƒ } g  | j ƒ  D] } | j ƒ  ^ q% } | | d d g ƒ |  j d ƒ } | j d ƒ } | | j ƒ  d ƒ d  S(   Ns
   msg_04.txts   msg.txts
   msg_07.txti   s   dingusfish.gif(   RC   R=   t   get_payloadt   get_filename(   R1   RE   R<   t   pt	   filenamest   subpart(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_filenameŽ   s    	%c         C   sT   |  j  } |  j d ƒ } g  | j ƒ  D] } | j ƒ  ^ q% } | | d d g ƒ d  S(   Ns
   msg_44.txts   msg.txt(   RC   R=   RV   RW   (   R1   RE   R<   RX   RY   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt%   test_get_filename_with_name_parameter™   s    	%c         C   s/   |  j  } |  j d ƒ } | | j ƒ  d ƒ d  S(   Ns
   msg_07.txtt   BOUNDARY(   RC   R=   t   get_boundary(   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_boundary    s    	c         C   sÙ   |  j  } |  j d ƒ } | j d ƒ | j ƒ  d \ } } | | j ƒ  d ƒ | | d ƒ |  j d ƒ } | j d ƒ | j ƒ  d \ } } | | j ƒ  d ƒ | | d ƒ |  j d ƒ } |  j t j | j d ƒ d  S(	   Ns
   msg_01.txtR]   i   s   content-types3   text/plain; charset="us-ascii"; boundary="BOUNDARY"s
   msg_04.txts$   multipart/mixed; boundary="BOUNDARY"s
   msg_03.txt(   RC   R=   t   set_boundaryt   itemst   lowert   assertRaisesR   t   HeaderParseError(   R1   RE   R<   t   headert   value(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_set_boundary¦   s    	c         C   sZ   t  d ƒ } |  j | j ƒ  d d d ƒ | j ƒ  |  j | j ƒ  d d d  d ƒ d  S(   Ns	   form-datai    i   s   multipart/form-datai!   s!   multipart/form-data; boundary="==(   R   RC   Ra   t	   as_string(   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_make_boundary¼   s
    
c         C   s‡   t  t d ƒ ƒ } | j ƒ  } t j j ƒ  } | j | ƒ } t ƒ  } t j j | t	 d ƒ } | j
 | t ƒ |  j | j ƒ  | ƒ d  S(   Ns
   msg_46.txti    (   R(   R   t   readR9   R   R   t   parsestrR    R	   t   Truet   flattent   FalseRC   R0   (   R1   R7   t   msgdatat   parserR<   t   outt   gen(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_message_rfc822_onlyÇ   s    	c         C   sß   |  j  } |  j d ƒ } | | j d t ƒ d  ƒ | | j d ƒ j d t ƒ d ƒ | | j d ƒ j d t ƒ d ƒ | | j d ƒ j d t ƒ d ƒ | | j d	 ƒ j d t ƒ d
 ƒ | | j d ƒ j d t ƒ d ƒ d  S(   Ns
   msg_10.txtt   decodei    s    This is a 7bit encoded message.
i   s-   ¡This is a Quoted Printable encoded message!
i   s!   This is a Base64 encoded message.i   s"   This is a Base64 encoded message.
i   s/   This has no Content-Transfer-Encoding: header.
(   RC   R=   RV   Rl   RI   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_decoded_payloadÓ   s    	c         C   s}   |  j  } t ƒ  } | j d ƒ x1 d
 D]) } | | d <| | j d t ƒ d ƒ q& W| j d	 ƒ | | j d t ƒ d	 ƒ d  S(   Ns$   begin 666 -
+:&5L;&\@=V]R;&0 
 
end
s
   x-uuencodet   uuencodet   uues   x-uues   content-transfer-encodingRt   s   hello worldt   foo(   s
   x-uuencodeRv   Rw   s   x-uue(   RC   R   RP   RV   Rl   (   R1   RE   R<   t   cte(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_decoded_uu_payloadé   s    		
c         C   st   t  ƒ  } | j d ƒ d | d <t j } z$ t ƒ  t _ } | j d t ƒ Wd  | t _ X|  j | j ƒ  d ƒ d  S(   Ns%   begin 664 foo.txt
%<W1F=0000H 
 
end
s
   x-uuencodes   Content-Transfer-EncodingRt   R   (	   R   RP   t   syst   stderrR    RV   Rl   RC   R0   (   R1   R<   t
   old_stderrt   sfp(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt$   test_decode_bogus_uu_payload_quietlyô   s    	
	
c         C   s{   |  j  } |  j d ƒ } t d ƒ } z | j ƒ  } Wd  | j ƒ  Xt ƒ  } t | ƒ } | j | ƒ | | j ƒ  | ƒ d  S(   Ns
   msg_07.txts
   msg_17.txt(	   RC   R=   R(   Rj   R;   R    R
   Rm   R0   (   R1   RE   R<   R7   t   textt   st   g(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_decoded_generator  s    		c         C   s�   t  ƒ  } d | d <d | d <|  j d | ƒ |  j d | ƒ |  j d | ƒ |  j d | ƒ |  j d | ƒ |  j d | ƒ d  S(	   Nt   Met   Fromt   Yout   tot   fromt   FROMt   Tot   TO(   R   t   assertIn(   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test__contains__  s    	

c         C   s´   |  j  } |  j d ƒ } t d ƒ } z | j ƒ  j d d ƒ } Wd  | j ƒ  X| | | j ƒ  ƒ t | ƒ } | j d ƒ } |  j	 | d j
 d ƒ ƒ | | t j | d ƒ ƒ d  S(   Ns
   msg_01.txts   	R   s   
i    s   From i   (   RC   R=   R(   Rj   t   replaceR;   Rh   R*   t   splitt
   assertTruet
   startswithR.   R"   (   R1   RE   R<   R7   R€   t   fullreprt   lines(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_as_string  s    	
c         C   s,   t  j d ƒ } |  j | j d ƒ d ƒ d  S(   Ns   Content-Type: blarg; baz; boo
t   bazR   (   R9   t   message_from_stringRC   RL   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_bad_param1  s    c         C   s)   t  j d ƒ } |  j | j ƒ  d  ƒ d  S(   Ns
   From: foo
(   R9   R–   RC   RW   RI   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_missing_filename5  s    c         C   s)   t  j d ƒ } |  j | j ƒ  d ƒ d  S(   Ns%   Content-Disposition: blarg; filename
R   (   R9   R–   RC   RW   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_bogus_filename9  s    	c         C   s)   t  j d ƒ } |  j | j ƒ  d  ƒ d  S(   Ns
   From: foo
(   R9   R–   RC   R^   RI   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_missing_boundary>  s    c         C   s³   |  j  } t j d ƒ } | | j d d ƒ d d d g ƒ t j d
 ƒ } | | j d d ƒ d d d g ƒ | | j ƒ  d  ƒ t j d ƒ } | | j d d ƒ d d d g ƒ d  S(   Ns&   X-Header: foo=one; bar=two; baz=three
Re   s   x-headerRx   t   onet   bart   twoR•   t   threes    X-Header: foo; bar=one; baz=two
R   s"   X-Header: foo; bar="one"; baz=two
(   Rx   R›   (   Rœ   R�   (   R•   Rž   (   Rx   R   (   Rœ   R›   (   R•   R�   (   Rx   R   (   Rœ   R›   (   R•   R�   (   RC   R9   R–   t
   get_paramsRI   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_paramsB  s    				c         C   s0   t  ƒ  } d | d <|  j | j d ƒ d ƒ d  S(   Ns>   Content-Type: Multipart/mixed; boundary = "CPIMSSMTPC06p5f3tG"s   Content-Typet   boundaryt   CPIMSSMTPC06p5f3tG(   R   RC   RL   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_param_liberalR  s    	
c         C   sÍ   |  j  } t j d ƒ } | | j d d d ƒd ƒ | | j d d d ƒd  ƒ | | j d ƒ d  ƒ t j d ƒ } | | j d d d ƒd	 ƒ | | j d d d ƒd
 ƒ | | j d d d ƒd ƒ d  S(   Ns&   X-Header: foo=one; bar=two; baz=three
Rœ   Re   s   x-headerR�   t   quuzs"   X-Header: foo; bar="one"; baz=two
Rx   R   R›   R•   (   RC   R9   R–   RL   RI   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_paramW  s    			c         C   s5   |  j  d ƒ } |  j | j d ƒ j d ƒ d ƒ d  S(   Ns
   msg_22.txti   t   names
   wibble.JPG(   R=   RC   RV   RL   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt'   test_get_param_funky_continuation_linesh  s    c         C   sK   t  j d ƒ } |  j | j d ƒ d ƒ |  j | j d d t ƒd ƒ d  S(   Ns4   Content-Type: image/pjpeg; name="Jim&amp;&amp;Jill"
R¦   s   Jim&amp;&amp;Jillt   unquotes   "Jim&amp;&amp;Jill"(   R9   R–   RC   RL   Rn   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt#   test_get_param_with_semis_in_quotesl  s
    	c         C   sT   t  j d ƒ } |  j | j d ƒ d ƒ t  j d ƒ } |  j | j d ƒ d ƒ d  S(   Ns5   Content-Type: foo; bar*0="baz\"foobar"; bar*1="\"baz"Rœ   s   baz"foobar"baz(   R9   R–   RC   RL   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_param_with_quotess  s    		c         C   sk   t  j d ƒ } |  j | j d ƒ ƒ |  j | j d ƒ ƒ |  j | j d ƒ ƒ |  j | j d ƒ ƒ d  S(   Ns   Header: existsRe   R   t   HEADERt   headeri(   R9   R–   R�   t   has_keyt   assertFalse(   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_has_key{  s
    c         C   sî   |  j  } t ƒ  } | j d d ƒ | | j d ƒ d ƒ | j d d ƒ | | j d ƒ d ƒ | | j d d t ƒd ƒ | | j ƒ  d d d g ƒ | | j d t ƒ d d d g ƒ | j d d
 d d ƒ| | j d d d ƒd
 ƒ d  S(   NRG   s   iso-2022-jpt
   importances
   high valueR¨   s   "high value"s
   text/plainR   s   "iso-2022-jp"s   iso-9999-xxRe   s   X-Jimmy(   s
   text/plainR   (   RG   s   iso-2022-jp(   R°   s
   high value(   s
   text/plainR   (   RG   s   "iso-2022-jp"(   R°   s   "high value"(   RC   R   t	   set_paramRL   Rn   RŸ   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_set_param‚  s    		

c         C   sŸ   |  j  } |  j d ƒ } | | j ƒ  d d	 d
 g ƒ | j d ƒ } | j d ƒ | | j ƒ  d d g ƒ | j d | ƒ | | j ƒ  d d d | f g ƒ d  S(   Ns
   msg_05.txts   multipart/reportR   s   report-types   delivery-statusR¡   s%   D1690A7AC1.996856090/mail.example.com(   s   multipart/reportR   (   s   report-types   delivery-status(   R¡   s%   D1690A7AC1.996856090/mail.example.com(   s   multipart/reportR   (   R¡   s%   D1690A7AC1.996856090/mail.example.com(   s   multipart/reportR   (   R¡   s%   D1690A7AC1.996856090/mail.example.com(   RC   R=   RŸ   RL   t	   del_paramR±   (   R1   RE   R<   t   old_val(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_del_param“  s    	

c         C   sG   t  ƒ  } | j d d d d ƒ| j d d ƒ |  j | d d ƒ d  S(   Ns   Content-Dispositiont
   attachmentR&   s   bud.gifs   content-disposition(   R   t
   add_headerR³   RC   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_del_param_on_other_header¤  s    	c         C   s‰   |  j  } t ƒ  } |  j t | j d ƒ | j d ƒ | | d d ƒ | j d d ƒ | | d d ƒ | j d ƒ | | d d ƒ d  S(	   NR€   s
   text/plains   content-typeRG   s   us-asciis   text/plain; charset="us-ascii"s	   text/htmls   text/html; charset="us-ascii"(   RC   R   Rc   t
   ValueErrort   set_typeR±   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_set_typeª  s    		c         C   s;   t  ƒ  } d | d <| j d d ƒ |  j | d d ƒ d  S(   Ns
   text/plains   X-Content-Types   application/octet-streams   x-content-type(   R   Rº   RC   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_set_type_on_other_headerµ  s    	
c         C   s#   t  ƒ  } |  j | j ƒ  d ƒ d  S(   Ns
   text/plain(   R   RC   RK   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_content_type_missing»  s    	c         C   s0   t  ƒ  } | j d ƒ |  j | j ƒ  d ƒ d  S(   Ns   message/rfc822(   R   t   set_default_typeRC   RK   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt/   test_get_content_type_missing_with_default_type¿  s    	c         C   s2   |  j  d ƒ } |  j | j d ƒ j ƒ  d ƒ d  S(   Ns
   msg_30.txti    s   message/rfc822(   R=   RC   RV   RK   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt+   test_get_content_type_from_message_implicitÄ  s    c         C   s2   |  j  d ƒ } |  j | j d ƒ j ƒ  d ƒ d  S(   Ns
   msg_28.txti    s   message/rfc822(   R=   RC   RV   RK   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt+   test_get_content_type_from_message_explicitÉ  s    c         C   s)   |  j  d ƒ } |  j | j ƒ  d ƒ d  S(   Ns
   msg_03.txts
   text/plain(   R=   RC   RK   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt6   test_get_content_type_from_message_text_plain_implicitÎ  s    c         C   s)   |  j  d ƒ } |  j | j ƒ  d ƒ d  S(   Ns
   msg_01.txts
   text/plain(   R=   RC   RK   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt6   test_get_content_type_from_message_text_plain_explicitÒ  s    c         C   s#   t  ƒ  } |  j | j ƒ  d ƒ d  S(   NR€   (   R   RC   t   get_content_maintype(   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt!   test_get_content_maintype_missingÖ  s    	c         C   s0   t  ƒ  } | j d ƒ |  j | j ƒ  d ƒ d  S(   Ns   message/rfc822t   message(   R   R¾   RC   RÄ   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt3   test_get_content_maintype_missing_with_default_typeÚ  s    	c         C   s2   |  j  d ƒ } |  j | j d ƒ j ƒ  d ƒ d  S(   Ns
   msg_30.txti    RÆ   (   R=   RC   RV   RÄ   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt/   test_get_content_maintype_from_message_implicitß  s    c         C   s2   |  j  d ƒ } |  j | j d ƒ j ƒ  d ƒ d  S(   Ns
   msg_28.txti    RÆ   (   R=   RC   RV   RÄ   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt/   test_get_content_maintype_from_message_explicitã  s    c         C   s)   |  j  d ƒ } |  j | j ƒ  d ƒ d  S(   Ns
   msg_03.txtR€   (   R=   RC   RÄ   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt:   test_get_content_maintype_from_message_text_plain_implicitç  s    c         C   s)   |  j  d ƒ } |  j | j ƒ  d ƒ d  S(   Ns
   msg_01.txtR€   (   R=   RC   RÄ   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt:   test_get_content_maintype_from_message_text_plain_explicitë  s    c         C   s#   t  ƒ  } |  j | j ƒ  d ƒ d  S(   Nt   plain(   R   RC   t   get_content_subtype(   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt    test_get_content_subtype_missingï  s    	c         C   s0   t  ƒ  } | j d ƒ |  j | j ƒ  d ƒ d  S(   Ns   message/rfc822t   rfc822(   R   R¾   RC   RÍ   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt2   test_get_content_subtype_missing_with_default_typeó  s    	c         C   s2   |  j  d ƒ } |  j | j d ƒ j ƒ  d ƒ d  S(   Ns
   msg_30.txti    RÏ   (   R=   RC   RV   RÍ   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt.   test_get_content_subtype_from_message_implicitø  s    c         C   s2   |  j  d ƒ } |  j | j d ƒ j ƒ  d ƒ d  S(   Ns
   msg_28.txti    RÏ   (   R=   RC   RV   RÍ   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt.   test_get_content_subtype_from_message_explicitü  s    c         C   s)   |  j  d ƒ } |  j | j ƒ  d ƒ d  S(   Ns
   msg_03.txtRÌ   (   R=   RC   RÍ   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt9   test_get_content_subtype_from_message_text_plain_implicit   s    c         C   s)   |  j  d ƒ } |  j | j ƒ  d ƒ d  S(   Ns
   msg_01.txtRÌ   (   R=   RC   RÍ   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt9   test_get_content_subtype_from_message_text_plain_explicit  s    c         C   s-   t  ƒ  } d | d <|  j | j ƒ  d ƒ d  S(   Ns   no-slash-in-this-strings   Content-TypeR€   (   R   RC   RÄ   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_content_maintype_error  s    	
c         C   s-   t  ƒ  } d | d <|  j | j ƒ  d ƒ d  S(   Ns   no-slash-in-this-strings   Content-TypeRÌ   (   R   RC   RÍ   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_content_subtype_error  s    	
c         C   s=  |  j  } t ƒ  } | j d d ƒ | j d d ƒ | j d d ƒ | | j ƒ  d d d g ƒ | | j ƒ  d d d g ƒ | j d d ƒ | | j ƒ  d d d g ƒ | | j ƒ  d d d g ƒ | j d d ƒ | j d d	 ƒ | | j ƒ  d d d d g ƒ | | j ƒ  d	 d d d g ƒ |  j t | j d
 d ƒ d  S(   Nt   Firstt   Onet   Secondt   Twot   Thirdt   Threet   Twentyt   Elevens   One Hundredt   Fourtht   Missing(   RC   R   R·   t   keyst   valuest   replace_headerRc   t   KeyError(   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_replace_header  s    		c         C   sP   d } t  ƒ  } d | d <d | d <| j | ƒ |  j | j d t ƒ | ƒ d  S(   Ns   AwDp0P7//y6LwKEAcPa/6Q=9s   audio/x-midis   content-typet   base64s   content-transfer-encodingRt   (   R   RP   RC   RV   Rl   (   R1   t   xR<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_broken_base64_payload#  s    	

c         C   sS   t  ƒ  } | j d ƒ |  j d | j ƒ  ƒ | j d ƒ |  j d | j ƒ  ƒ d  S(   Ns   us-asciiu   us-ascii(   R   RJ   RC   t   get_content_charset(   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_get_content_charset+  s
    	c         C   s3   t  ƒ  } t d ƒ | d <|  j t j | j ƒ d  S(   Ns   dummy
X-Injected-Header: testt   Dummy(   R   R   Rc   R   Rd   Rh   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt(   test_embedded_header_via_Header_rejected4  s    	c         C   s-   t  ƒ  } d | d <|  j t j | j ƒ d  S(   Ns   dummy
X-Injected-Header: testRë   (   R   Rc   R   Rd   Rh   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt(   test_embedded_header_via_string_rejected9  s    	
(<   R>   R?   RF   RN   RO   RQ   RU   R[   R\   R_   Rg   Ri   Rs   Ru   Rz   R   Rƒ   R�   R”   R—   R˜   R™   Rš   R    R£   R¥   R§   R©   Rª   R¯   R²   Rµ   R¸   R»   R¼   R½   R¿   RÀ   RÁ   RÂ   RÃ   RÅ   RÇ   RÈ   RÉ   RÊ   RË   RÎ   RÐ   RÑ   RÒ   RÓ   RÔ   RÕ   RÖ   Rå   Rè   Rê   Rì   Rí   (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR@   O   st   																																																										t   TestEncodersc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   s4   |  j  } t ƒ  } | j d ƒ | | d d ƒ d  S(   Ns   us-asciis   content-transfer-encodingt   7bit(   RC   R   RJ   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_encode_empty_payloadA  s    		c         C   sj   |  j  } t d ƒ } | | d d ƒ t d ƒ } | | d d ƒ t d d d ƒ} | | d d ƒ d  S(	   Ns   hello worlds   content-transfer-encodingRï   s   hello ø worldt   8bitt   _charsets
   iso-8859-1s   quoted-printable(   RC   R   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_default_cteG  s    	c         C   s6   |  j  } t j j d d d ƒ} | | d d ƒ d  S(   Ns   Ê¸Rò   s   euc-jps   content-transfer-encodingRï   (   RC   R9   R   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_encode7or8bitS  s    	(   R>   R?   Rð   Ró   Rô   (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRî   @  s   		t   TestLongHeadersc           B   sÅ   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sQ   |  j  } t j d ƒ } t ƒ  } t | ƒ } | j | ƒ | | j ƒ  d ƒ d  S(   Nsº   Subject: bug demonstration
	12345678911234567892123456789312345678941234567895123456789612345678971234567898112345678911234567892123456789112345678911234567892123456789
	more text

test
sº   Subject: bug demonstration
 12345678911234567892123456789312345678941234567895123456789612345678971234567898112345678911234567892123456789112345678911234567892123456789
 more text

test
(   R8   R9   R–   R    R	   Rm   R0   (   R1   RE   R<   R~   R‚   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_split_long_continuation^  s    			c         C   sW   |  j  } d } t | d d ƒ} | | j ƒ  d ƒ t | ƒ } | | j ƒ  d ƒ d  S(   Nsª   bug demonstration
	12345678911234567892123456789312345678941234567895123456789612345678971234567898112345678911234567892123456789112345678911234567892123456789
	more textt   continuation_wss   	sª   bug demonstration
 12345678911234567892123456789312345678941234567895123456789612345678971234567898112345678911234567892123456789112345678911234567892123456789
 more text(   R8   R   t   encode(   R1   RE   t   hstrt   h(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt,   test_another_long_almost_unsplittable_headerr  s    	c         C   sÜ   |  j  } t d ƒ } t d ƒ } t d ƒ } d } d } d j d ƒ } t | | d d ƒ} | j | | ƒ | j | | ƒ t ƒ  }	 | |	 d <t ƒ  }
 t |
 ƒ } | j |	 ƒ | |
 j	 ƒ  d	 ƒ | | j ƒ  d
 ƒ d  S(   Ns
   iso-8859-1s
   iso-8859-2s   utf-8s©   Die Mieter treten hier ein werden mit einem Foerderband komfortabel den Korridor entlang, an südlündischen Wandgemälden vorbei, gegen die rotierenden Klingen befördert. s;   Finanèni metropole se hroutily pod tlakem jejich dùvtipu.. uø   æ­£ç¢ºã�«è¨€ã�†ã�¨ç¿»è¨³ã�¯ã�•ã‚Œã�¦ã�„ã�¾ã�›ã‚“ã€‚ä¸€éƒ¨ã�¯ãƒ‰ã‚¤ãƒ„èªžã�§ã�™ã�Œã€�ã�‚ã�¨ã�¯ã�§ã�Ÿã‚‰ã‚�ã�§ã�™ã€‚å®Ÿéš›ã�«ã�¯ã€ŒWenn ist das Nunstuck git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput.ã€�ã�¨è¨€ã�£ã�¦ã�„ã�¾ã�™ã€‚t   header_namet   Subjects  Subject: =?iso-8859-1?q?Die_Mieter_treten_hier_ein_werden_mit_einem_Foerd?=
 =?iso-8859-1?q?erband_komfortabel_den_Korridor_entlang=2C_an_s=FCdl=FCndi?=
 =?iso-8859-1?q?schen_Wandgem=E4lden_vorbei=2C_gegen_die_rotierenden_Kling?=
 =?iso-8859-1?q?en_bef=F6rdert=2E_?= =?iso-8859-2?q?Finan=E8ni_met?=
 =?iso-8859-2?q?ropole_se_hroutily_pod_tlakem_jejich_d=F9vtipu=2E=2E_?=
 =?utf-8?b?5q2j56K644Gr6KiA44GG44Go57+76Kiz44Gv44GV44KM44Gm44GE?=
 =?utf-8?b?44G+44Gb44KT44CC5LiA6YOo44Gv44OJ44Kk44OE6Kqe44Gn44GZ44GM44CB?=
 =?utf-8?b?44GC44Go44Gv44Gn44Gf44KJ44KB44Gn44GZ44CC5a6f6Zqb44Gr44Gv44CM?=
 =?utf-8?q?Wenn_ist_das_Nunstuck_git_und_Slotermeyer=3F_Ja!_Beiherhund_das?=
 =?utf-8?b?IE9kZXIgZGllIEZsaXBwZXJ3YWxkdCBnZXJzcHV0LuOAjeOBqOiogOOBow==?=
 =?utf-8?b?44Gm44GE44G+44GZ44CC?=

sø  =?iso-8859-1?q?Die_Mieter_treten_hier_ein_werden_mit_einem_Foerd?=
 =?iso-8859-1?q?erband_komfortabel_den_Korridor_entlang=2C_an_s=FCdl=FCndi?=
 =?iso-8859-1?q?schen_Wandgem=E4lden_vorbei=2C_gegen_die_rotierenden_Kling?=
 =?iso-8859-1?q?en_bef=F6rdert=2E_?= =?iso-8859-2?q?Finan=E8ni_met?=
 =?iso-8859-2?q?ropole_se_hroutily_pod_tlakem_jejich_d=F9vtipu=2E=2E_?=
 =?utf-8?b?5q2j56K644Gr6KiA44GG44Go57+76Kiz44Gv44GV44KM44Gm44GE?=
 =?utf-8?b?44G+44Gb44KT44CC5LiA6YOo44Gv44OJ44Kk44OE6Kqe44Gn44GZ44GM44CB?=
 =?utf-8?b?44GC44Go44Gv44Gn44Gf44KJ44KB44Gn44GZ44CC5a6f6Zqb44Gr44Gv44CM?=
 =?utf-8?q?Wenn_ist_das_Nunstuck_git_und_Slotermeyer=3F_Ja!_Beiherhund_das?=
 =?utf-8?b?IE9kZXIgZGllIEZsaXBwZXJ3YWxkdCBnZXJzcHV0LuOAjeOBqOiogOOBow==?=
 =?utf-8?b?44Gm44GE44G+44GZ44CC?=(
   R8   R   Rø   R   t   appendR   R    R	   Rm   R0   (   R1   RE   R‚   t   czt   utf8t   g_headt   cz_headt	   utf8_headRú   R<   R~   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_long_nonstringƒ  s&    		
	c         C   s2   |  j  } t d d d ƒ} | | j ƒ  d ƒ d  S(   Nsi   wasnipoop; giraffes="very-long-necked-animals"; spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"Rü   s   X-Foobar-Spoink-Defrobnitsj   wasnipoop; giraffes="very-long-necked-animals";
 spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"(   R8   R   Rø   (   R1   RE   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_long_header_encode®  s
    			c         C   s8   |  j  } t d d d d d ƒ} | | j ƒ  d ƒ d  S(   Nsi   wasnipoop; giraffes="very-long-necked-animals"; spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"Rü   s   X-Foobar-Spoink-DefrobnitR÷   s   	sj   wasnipoop; giraffes="very-long-necked-animals";
	spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"(   R8   R   Rø   (   R1   RE   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt-   test_long_header_encode_with_tab_continuation·  s    			c         C   sX   |  j  } t d ƒ } d | d <t ƒ  } t | ƒ } | j | ƒ | | j ƒ  d ƒ d  S(   NR   si   wasnipoop; giraffes="very-long-necked-animals"; spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"s   X-Foobar-Spoink-Defrobnitsæ   Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Foobar-Spoink-Defrobnit: wasnipoop; giraffes="very-long-necked-animals";
 spooge="yummy"; hippos="gargantuan"; marshmallows="gooey"

(   R8   R   R    R	   Rm   R0   (   R1   RE   R<   R~   R‚   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_header_splitterÁ  s    	
	c         C   s’   |  j  } t ƒ  } d | d <t j g  t d ƒ D] } d | ^ q/ ƒ | d <| j d ƒ t ƒ  } t | ƒ } | j | ƒ | | j	 ƒ  d ƒ d  S(   Ns   test@dom.ainR…   i
   s   <%d@dom.ain>t
   Referencest   Tests�   From: test@dom.ain
References: <0@dom.ain> <1@dom.ain> <2@dom.ain> <3@dom.ain> <4@dom.ain>
 <5@dom.ain> <6@dom.ain> <7@dom.ain> <8@dom.ain> <9@dom.ain>

Test(
   R8   R   t   SPACER"   t   rangeRP   R    R	   Rm   R0   (   R1   RE   R<   t   iR~   R‚   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_no_semis_header_splitterÕ  s    		
0	c         C   s@   |  j  } d d d } t | d d ƒ} | | j ƒ  d ƒ d  S(   Ns   References: Rç   iP   R÷   s   	s\   References: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(   R8   R   Rø   (   R1   RE   Rù   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_no_split_long_headerå  s
    	c         C   s8   |  j  } d } t | d d ƒ} | | j ƒ  d ƒ d  S(   NsW  from babylon.socal-raves.org (localhost [127.0.0.1]); by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; for <mailman-admin@babylon.socal-raves.org>; Sat, 2 Feb 2002 17:00:06 -0800 (PST)
	from babylon.socal-raves.org (localhost [127.0.0.1]); by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; for <mailman-admin@babylon.socal-raves.org>; Sat, 2 Feb 2002 17:00:06 -0800 (PST)
	from babylon.socal-raves.org (localhost [127.0.0.1]); by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; for <mailman-admin@babylon.socal-raves.org>; Sat, 2 Feb 2002 17:00:06 -0800 (PST)
R÷   s   	s_  from babylon.socal-raves.org (localhost [127.0.0.1]);
	by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81;
	for <mailman-admin@babylon.socal-raves.org>;
	Sat, 2 Feb 2002 17:00:06 -0800 (PST)
	from babylon.socal-raves.org (localhost [127.0.0.1]);
	by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81;
	for <mailman-admin@babylon.socal-raves.org>;
	Sat, 2 Feb 2002 17:00:06 -0800 (PST)
	from babylon.socal-raves.org (localhost [127.0.0.1]);
	by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81;
	for <mailman-admin@babylon.socal-raves.org>;
	Sat, 2 Feb 2002 17:00:06 -0800 (PST)(   R8   R   Rø   (   R1   RE   Rù   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt"   test_splitting_multiple_long_linesì  s
    	c         C   sD   |  j  } d } t | d d d d d d ƒ} | | j ƒ  d ƒ d  S(	   NsÞ   from modemcable093.139-201-24.que.mc.videotron.ca ([24.201.139.93] helo=cthulhu.gerg.ca)
	by kronos.mems-exchange.org with esmtp (Exim 4.05)
	id 17k4h5-00034i-00
	for test@mems-exchange.org; Wed, 28 Aug 2002 11:25:20 -0400t
   maxlineleniN   Rü   t   ReceivedR÷   s   	sß   from modemcable093.139-201-24.que.mc.videotron.ca ([24.201.139.93]
	helo=cthulhu.gerg.ca)
	by kronos.mems-exchange.org with esmtp (Exim 4.05)
	id 17k4h5-00034i-00
	for test@mems-exchange.org; Wed, 28 Aug 2002 11:25:20 -0400(   R8   R   Rø   (   R1   RE   Rù   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt&   test_splitting_first_line_only_is_long  s    		c         C   sU   |  j  } t ƒ  } t d d d d ƒ} | j d ƒ | | d <| | j ƒ  d ƒ d  S(   Ns   Britische Regierung gibts
   iso-8859-1Rü   Rý   s+   grünes Licht für Offshore-Windkraftprojektesˆ   Subject: =?iso-8859-1?q?Britische_Regierung_gibt?= =?iso-8859-1?q?gr=FCnes?=
 =?iso-8859-1?q?_Licht_f=FCr_Offshore-Windkraftprojekte?=

(   R8   R   R   Rþ   Rh   (   R1   RE   R<   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_long_8bit_header  s    			
c         C   s3   |  j  } t ƒ  } d | d <| | j ƒ  d ƒ d  S(   Nsf   Britische Regierung gibt grünes Licht für Offshore-Windkraftprojekte <a-very-long-address@example.com>s   Reply-Tosr   Reply-To: Britische Regierung gibt grünes Licht für Offshore-Windkraftprojekte <a-very-long-address@example.com>

(   R8   R   Rh   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt    test_long_8bit_header_no_charset  s
    		
c         C   s<   |  j  } d } t ƒ  } | | d <| | j d ƒ d ƒ d  S(   NsÁ   "Someone Test #A" <someone@eecs.umich.edu>,<someone@eecs.umich.edu>,"Someone Test #B" <someone@umich.edu>, "Someone Test #C" <someone@eecs.umich.edu>, "Someone Test #D" <someone@eecs.umich.edu>RŠ   i    sÌ   To: "Someone Test #A" <someone@eecs.umich.edu>, <someone@eecs.umich.edu>,
 "Someone Test #B" <someone@umich.edu>,
 "Someone Test #C" <someone@eecs.umich.edu>,
 "Someone Test #D" <someone@eecs.umich.edu>

(   R8   R   Rh   (   R1   RE   R‡   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_long_to_header(  s    		
c         C   s?   |  j  } d } t | ƒ } | j d ƒ | | j ƒ  d ƒ d  S(   NsI   This is an example of string which has almost the limit of header length.s   Add another line.s\   This is an example of string which has almost the limit of header length.
 Add another line.(   R8   R   Rþ   Rø   (   R1   RE   R�   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_long_line_after_append5  s    	c         C   s?   |  j  } d } t | ƒ } | j d ƒ | | j ƒ  d ƒ d  S(   Ns   This is a shorter line.s!   Add another sentence. (Surprise?)s9   This is a shorter line. Add another sentence. (Surprise?)(   R8   R   Rþ   Rø   (   R1   RE   R�   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_shorter_line_with_append>  s    	c         C   sA   |  j  } d } d } t | d d | ƒ} | | j ƒ  d ƒ d  S(   Ns!   X-Very-Very-Very-Long-Header-Names©   Die Mieter treten hier ein werden mit einem Foerderband komfortabel den Korridor entlang, an südlündischen Wandgemälden vorbei, gegen die rotierenden Klingen befördert. s
   iso-8859-1Rü   s  =?iso-8859-1?q?Die_Mieter_treten_hier_?=
 =?iso-8859-1?q?ein_werden_mit_einem_Foerderband_komfortabel_den_Korridor_?=
 =?iso-8859-1?q?entlang=2C_an_s=FCdl=FCndischen_Wandgem=E4lden_vorbei=2C_g?=
 =?iso-8859-1?q?egen_die_rotierenden_Klingen_bef=F6rdert=2E_?=(   R8   R   Rø   (   R1   RE   t   fnt   gsRú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_long_field_nameF  s    	c         C   sI   d } t  ƒ  } t | d d ƒ| d <| | d <|  j | j ƒ  d ƒ d  S(   Ns‰   from FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) by hrothgar.la.mastaler.com (tmda-ofmipd) with ESMTP; Wed, 05 Mar 2003 18:10:18 -0700R÷   s   	s
   Received-1s
   Received-2s1  Received-1: from FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) by
	hrothgar.la.mastaler.com (tmda-ofmipd) with ESMTP;
	Wed, 05 Mar 2003 18:10:18 -0700
Received-2: from FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) by
 hrothgar.la.mastaler.com (tmda-ofmipd) with ESMTP;
 Wed, 05 Mar 2003 18:10:18 -0700

(   R   R   RC   Rh   (   R1   Rú   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_long_received_headerR  s    	
c         C   sO   d } t  ƒ  } t | d d d d ƒ| d <| | d <|  j | j ƒ  d ƒ d  S(   Ns�   <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> (David Bremner's message of "Thu, 6 Mar 2003 13:58:21 +0100")Rü   R  R÷   s   	s  Received: <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de>
	(David Bremner's message of "Thu, 6 Mar 2003 13:58:21 +0100")
Received: <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de>
 (David Bremner's message of "Thu, 6 Mar 2003 13:58:21 +0100")

(   R   R   R8   Rh   (   R1   Rú   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_string_headerinst_eqa  s    	
c         C   sO   |  j  } t ƒ  } d } | | d <t | d d ƒ| d <| | j ƒ  d ƒ d  S(   Ns“    iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9
 locQDQ4zJykFBAXJfWDjAAACYUlEQVR4nF2TQY/jIAyFc6lydlG5x8Nyp1Y69wj1PN2I5gzps   Face-1Rü   s   Face-2s7  Face-1: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9
 locQDQ4zJykFBAXJfWDjAAACYUlEQVR4nF2TQY/jIAyFc6lydlG5x8Nyp1Y69wj1PN2I5gzp
Face-2: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9
 locQDQ4zJykFBAXJfWDjAAACYUlEQVR4nF2TQY/jIAyFc6lydlG5x8Nyp1Y69wj1PN2I5gzp

(   R8   R   R   Rh   (   R1   RE   R<   t   t(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt-   test_long_unbreakable_lines_with_continuationo  s    		
c         C   s5   |  j  } d } t j | ƒ } | | j ƒ  d ƒ d  S(   NsŠ   Received: from siimage.com ([172.25.1.3]) by zima.siliconimage.com with Microsoft SMTPSVC(5.0.2195.4905);
 Wed, 16 Oct 2002 07:41:11 -0700sŒ   Received: from siimage.com ([172.25.1.3]) by zima.siliconimage.com with
 Microsoft SMTPSVC(5.0.2195.4905); Wed, 16 Oct 2002 07:41:11 -0700

(   R8   R9   R–   Rh   (   R1   RE   t   mR<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt"   test_another_long_multiline_header  s
    	c         C   sO   |  j  } d } t ƒ  } | | d <t | d d ƒ| d <| | j ƒ  d ƒ d  S(   Ns¨   List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>,
        <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>t   ListRü   sQ  List: List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>,
 <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>
List: List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>,
 <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>

(   R8   R   R   Rh   (   R1   RE   Rú   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt%   test_long_lines_with_different_header‹  s    		
(   R>   R?   Rö   Rû   R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R   R"  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRõ   ]  s*   			+			
																	t   TestFromManglingc           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   s-   t  ƒ  |  _ d |  j d <|  j j d ƒ d  S(   Ns   aaa@bbb.orgR…   s(   From the desk of A.A.A.:
Blah blah blah
(   R   R<   RP   (   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   setUpŸ  s    	c         C   sE   t  ƒ  } t | d t ƒ} | j |  j ƒ |  j | j ƒ  d ƒ d  S(   Nt   mangle_from_s<   From: aaa@bbb.org

>From the desk of A.A.A.:
Blah blah blah
(   R    R	   Rl   Rm   R<   RC   R0   (   R1   R�   R‚   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_mangled_from§  s
    	c         C   sE   t  ƒ  } t | d t ƒ} | j |  j ƒ |  j | j ƒ  d ƒ d  S(   NR%  s;   From: aaa@bbb.org

From the desk of A.A.A.:
Blah blah blah
(   R    R	   Rn   Rm   R<   RC   R0   (   R1   R�   R‚   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_dont_mangle_from²  s
    	c         C   s‹   t  ƒ  } t | d t ƒ} t j t j d ƒ ƒ } | j | ƒ |  j t	 g  | j
 ƒ  j d ƒ D] } | j d ƒ r_ d ^ q_ ƒ d ƒ d  S(   NR%  s)              From: foo@bar.com
            Mime-Version: 1.0
            Content-Type: multipart/mixed; boundary=XXX

            From somewhere unknown

            --XXX
            Content-Type: text/plain

            foo

            --XXX--

            From somewhere unknowable
            s   
s   >From i   i   (   R    R	   Rl   R9   R–   t   textwrapt   dedentRm   RC   t   lenR0   R�   R‘   (   R1   R�   R‚   R<   Rç   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt'   test_mangle_from_in_preamble_and_epilog½  s    	%(   R>   R?   R$  R&  R'  R+  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR#  ž  s   			t   TestMIMEAudioc           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   ss   t  j j t  j j t ƒ d d ƒ } t t d | ƒ d ƒ } z | j ƒ  |  _ Wd  | j	 ƒ  Xt
 |  j ƒ |  _ d  S(   NR   R   s   audiotest.aut   rb(   R    R!   R"   R#   R$   R%   R   Rj   t
   _audiodataR;   R   t   _au(   R1   t   datadirR7   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR$  ×  s    $c         C   s   |  j  |  j j ƒ  d ƒ d  S(   Ns   audio/basic(   RC   R/  RK   (   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_guess_minor_typeå  s    c         C   s/   |  j  j ƒ  } |  j t j | ƒ |  j ƒ d  S(   N(   R/  RV   RC   Ræ   t   decodestringR.  (   R1   t   payload(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_encodingè  s    c         C   s,   t  |  j d ƒ } |  j | j ƒ  d ƒ d  S(   Nt   fishs
   audio/fish(   R   R.  RC   RK   (   R1   t   au(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_checkSetMinorì  s    c         C   s  |  j  } |  j j d d d d ƒ| |  j d d ƒ | |  j j d d ƒ d d g ƒ | |  j j d d d ƒd ƒ g  } | |  j j d d d ƒd ƒ |  j |  j j d	 d
 | d d ƒ| ƒ |  j |  j j d | ƒ | ƒ |  j |  j j d | d d ƒ| ƒ d  S(   Ns   Content-DispositionR¶   R&   s   audiotest.aus   content-dispositions#   attachment; filename="audiotest.au"Re   R   Rx   t   failobjt   foobar(   R¶   R   (   R&   s   audiotest.au(   RC   R/  R·   RŸ   RL   t   assertIs(   R1   RE   t   missing(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_add_headerð  s     	(   R>   R?   R$  R1  R4  R7  R<  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR,  Ö  s
   				t   TestMIMEImagec           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sC   t  d ƒ } z | j ƒ  |  _ Wd  | j ƒ  Xt |  j ƒ |  _ d  S(   Ns   PyBanner048.gif(   R(   Rj   t   _imgdataR;   R   t   _im(   R1   R7   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR$    s
    c         C   s   |  j  |  j j ƒ  d ƒ d  S(   Ns	   image/gif(   RC   R?  RK   (   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR1    s    c         C   s/   |  j  j ƒ  } |  j t j | ƒ |  j ƒ d  S(   N(   R?  RV   RC   Ræ   R2  R>  (   R1   R3  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR4    s    c         C   s,   t  |  j d ƒ } |  j | j ƒ  d ƒ d  S(   NR5  s
   image/fish(   R   R>  RC   RK   (   R1   t   im(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR7    s    c         C   s  |  j  } |  j j d d d d ƒ| |  j d d ƒ | |  j j d d ƒ d d g ƒ | |  j j d d d ƒd ƒ g  } | |  j j d d d ƒd ƒ |  j |  j j d	 d
 | d d ƒ| ƒ |  j |  j j d | ƒ | ƒ |  j |  j j d | d d ƒ| ƒ d  S(   Ns   Content-DispositionR¶   R&   s   dingusfish.gifs   content-dispositions%   attachment; filename="dingusfish.gif"Re   R   Rx   R8  R9  (   R¶   R   (   R&   s   dingusfish.gif(   RC   R?  R·   RŸ   RL   R:  (   R1   RE   R;  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR<    s     	(   R>   R?   R$  R1  R4  R7  R<  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR=    s
   				t   TestMIMETextc           B   sP   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   c         C   s   t  d ƒ |  _ d  S(   Ns   hello there(   R   t   _msg(   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR$  1  s    c         C   s†   |  j  } | |  j j ƒ  d ƒ | |  j j d ƒ d ƒ g  } |  j |  j j d | ƒ | ƒ |  j |  j j d | d d ƒ| ƒ d  S(   Ns
   text/plainRG   s   us-asciiR9  Re   (   RC   RB  RK   RL   R:  (   R1   RE   R;  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt
   test_types4  s    	c         C   s3   |  j  |  j j ƒ  d ƒ |  j |  j j ƒ  ƒ d  S(   Ns   hello there(   RC   RB  RV   R®   t   is_multipart(   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_payload=  s    c         C   sF   |  j  } t d d d ƒ} | | j ƒ  j d ƒ | | d d ƒ d  S(   Ns   hello thereRò   s   us-asciis   content-types   text/plain; charset="us-ascii"(   RC   R   RH   RM   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_charsetA  s    	c         C   sF   |  j  } t d d d ƒ} | | j ƒ  j d ƒ | | d d ƒ d  S(   Nu   hello thereRò   s   us-asciis   content-types   text/plain; charset="us-ascii"(   RC   R   RH   RM   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_7bit_unicode_inputG  s    	c         C   sS   |  j  } t d ƒ } | | j ƒ  d ƒ | | d d ƒ |  j d | j ƒ  ƒ d  S(   Nu   hello theres   us-asciis   content-types   text/plain; charset="us-ascii"s   hello there(   RC   R   RH   RŒ   Rh   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt"   test_7bit_unicode_input_no_charsetM  s
    	c         C   sn   d } |  j  } t | d d ƒ} | | j ƒ  j d ƒ | | d d ƒ | | j d t ƒ | j d ƒ ƒ d  S(   Nu   ÐºÐ¸Ñ€Ð¸Ð»Ð¸Ñ†Ð°Rò   s   utf-8s   content-types   text/plain; charset="utf-8"Rt   (   RC   R   RH   t   output_charsetRV   Rl   Rø   (   R1   t   teststrRE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_8bit_unicode_inputT  s    	c         C   s   d } |  j  t t | ƒ d  S(   Nu   ÐºÐ¸Ñ€Ð¸Ð»Ð¸Ñ†Ð°(   Rc   t   UnicodeEncodeErrorR   (   R1   RJ  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt"   test_8bit_unicode_input_no_charset\  s    (
   R>   R?   R$  RC  RE  RF  RG  RH  RK  RM  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRA  0  s   								t   TestMultipartc           B   sª   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sV  t  d ƒ } z | j ƒ  } Wd  | j ƒ  Xt d d d d ƒ} t | d d ƒ} | j d d	 d
 d ƒt d ƒ } | j | ƒ | j | ƒ d | d <d | d <d | d <d } t j	 | ƒ } | d d k rÜ t j
 } n	 t j } | d k rú d }	 n d }	 d |	 | d f }
 t j d t j	 | ƒ ƒ |
 | d <| |  _ | |  _ | |  _ d  S(   Ns   PyBanner048.gift	   multipartt   mixedR¡   R]   R¦   s   dingusfish.gifs   content-dispositionR¶   R&   s$   Hi there,

This is the dingus fish.
s   Barry <barry@digicool.com>R…   s)   Dingus Lovers <cravindogs@cravindogs.com>RŠ   s   Here is your dingus fishRý   gÊ4FÓcpÍAiÿÿÿÿi    t   -t   +s    %s%04di$   s   %a, %d %b %Y %H:%M:%St   Date(   R(   Rj   R;   R   R   R·   R   t   attacht   timet	   localtimet   timezonet   altzonet   strftimeRB  R?  t   _txt(   R1   R7   R   t	   containert   imaget   introt   nowt	   timetuplet   tzsecst   signt   tzoffset(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR$  d  s<    	


				c         C   sô   |  j  } |  j } |  j } |  j | j ƒ  ƒ | | j ƒ  d ƒ | t | j ƒ  ƒ d ƒ | t | j d ƒ | j d ƒ } | j d ƒ } |  j	 | |  j
 ƒ |  j	 | |  j ƒ | | j ƒ  | | g ƒ |  j | j ƒ  ƒ |  j | j ƒ  ƒ d  S(   Ns   multipart/mixedi   i    i   (   RC   Rc   RB  R�   RD  RK   R*  RV   t
   IndexErrorR:  RZ  R?  R®   (   R1   RE   t   raisesR  t   m0t   m1(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_hierarchyŒ  s    			c         C   s2   d } t  ƒ  j | ƒ } |  j | | j ƒ  ƒ d  S(   Nsž   Content-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain


--BOUNDARY


--BOUNDARY--
(   R   Rk   R8   Rh   (   R1   R€   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_empty_multipart_idempotentž  s    c         C   sT   t  d d ƒ } d | d <d | d <d | d <| j d	 ƒ |  j | j ƒ  d
 ƒ d  S(   NRO  RP  s	   A subjectRý   s   aperson@dom.ainRŠ   s   bperson@dom.ainR…   R]   sœ   Content-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY

--BOUNDARY--
(   R   R`   R8   Rh   (   R1   t   outer(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt/   test_no_parts_in_a_multipart_with_none_epilogue¯  s    



c         C   sf   t  d d ƒ } d | d <d | d <d | d <d	 | _ d	 | _ | j d
 ƒ |  j | j ƒ  d ƒ d  S(   NRO  RP  s	   A subjectRý   s   aperson@dom.ainRŠ   s   bperson@dom.ainR…   R   R]   s�   Content-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain


--BOUNDARY

--BOUNDARY--
(   R   t   preamblet   epilogueR`   R8   Rh   (   R1   Ri  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt0   test_no_parts_in_a_multipart_with_empty_epilogueÁ  s    


		c         C   ss   |  j  } t d d ƒ } d | d <d | d <d | d <| j d	 ƒ t d
 ƒ } | j | ƒ | | j ƒ  d ƒ d  S(   NRO  RP  s	   A subjectRý   s   aperson@dom.ainRŠ   s   bperson@dom.ainR…   R]   s   hello worlds  Content-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

hello world
--BOUNDARY--
(   R8   R   R`   R   RT  Rh   (   R1   RE   Ri  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_one_part_in_a_multipartÖ  s    	


c         C   s|   |  j  } t d d ƒ } d | d <d | d <d | d <d	 | _ t d
 ƒ } | j | ƒ | j d ƒ | | j ƒ  d ƒ d  S(   NRO  RP  s	   A subjectRý   s   aperson@dom.ainRŠ   s   bperson@dom.ainR…   R   s   hello worldR]   s  Content-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain


--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

hello world
--BOUNDARY--
(   R8   R   Rk  R   RT  R`   Rh   (   R1   RE   Ri  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt1   test_seq_parts_in_a_multipart_with_empty_preambleï  s    	


	c         C   s|   |  j  } t d d ƒ } d | d <d | d <d | d <d  | _ t d	 ƒ } | j | ƒ | j d
 ƒ | | j ƒ  d ƒ d  S(   NRO  RP  s	   A subjectRý   s   aperson@dom.ainRŠ   s   bperson@dom.ainR…   s   hello worldR]   s  Content-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

hello world
--BOUNDARY--
(   R8   R   RI   Rk  R   RT  R`   Rh   (   R1   RE   Ri  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt0   test_seq_parts_in_a_multipart_with_none_preamble  s    	


	c         C   s|   |  j  } t d d ƒ } d | d <d | d <d | d <d  | _ t d	 ƒ } | j | ƒ | j d
 ƒ | | j ƒ  d ƒ d  S(   NRO  RP  s	   A subjectRý   s   aperson@dom.ainRŠ   s   bperson@dom.ainR…   s   hello worldR]   s  Content-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

hello world
--BOUNDARY--
(   R8   R   RI   Rl  R   RT  R`   Rh   (   R1   RE   Ri  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt0   test_seq_parts_in_a_multipart_with_none_epilogue&  s    	


	c         C   s|   |  j  } t d d ƒ } d | d <d | d <d | d <d	 | _ t d
 ƒ } | j | ƒ | j d ƒ | | j ƒ  d ƒ d  S(   NRO  RP  s	   A subjectRý   s   aperson@dom.ainRŠ   s   bperson@dom.ainR…   R   s   hello worldR]   s  Content-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

hello world
--BOUNDARY--
(   R8   R   Rl  R   RT  R`   Rh   (   R1   RE   Ri  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt1   test_seq_parts_in_a_multipart_with_empty_epilogueA  s    	


	c         C   s|   |  j  } t d d ƒ } d | d <d | d <d | d <d	 | _ t d
 ƒ } | j | ƒ | j d ƒ | | j ƒ  d ƒ d  S(   NRO  RP  s	   A subjectRý   s   aperson@dom.ainRŠ   s   bperson@dom.ainR…   s   
s   hello worldR]   s  Content-Type: multipart/mixed; boundary="BOUNDARY"
MIME-Version: 1.0
Subject: A subject
To: aperson@dom.ain
From: bperson@dom.ain

--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

hello world
--BOUNDARY--

(   R8   R   Rl  R   RT  R`   Rh   (   R1   RE   Ri  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt.   test_seq_parts_in_a_multipart_with_nl_epilogue\  s    	


	c         C   sÕ   |  j  } |  j d ƒ } | t | j ƒ  ƒ d ƒ | j d ƒ } | | j ƒ  d ƒ | t | j ƒ  ƒ d ƒ xb | j ƒ  D]T } | | j ƒ  d ƒ | t | j ƒ  ƒ d ƒ | j d ƒ } | | j ƒ  d ƒ qy Wd  S(   Ns
   msg_36.txti   i   s   multipart/alternatives   message/external-bodyi    s
   text/plain(   RC   R=   R*  RV   RK   (   R1   RE   R<   t   msg1RZ   t
   subsubpart(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_message_external_bodyw  s    	c         C   s/   |  j  d ƒ } |  j t | j ƒ  ƒ d ƒ d  S(   Ns
   msg_37.txti   (   R=   RC   R*  RV   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_double_boundary„  s    c         C   sH   |  j  } |  j d ƒ } t ƒ  } t j | | ƒ | | j ƒ  d ƒ d  S(   Ns
   msg_38.txtsŠ   multipart/mixed
    multipart/mixed
        multipart/alternative
            text/plain
        text/plain
    text/plain
    text/plain
(   R8   R=   R    R   t
   _structureR0   (   R1   RE   R<   R~   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt)   test_nested_inner_contains_outer_boundary‹  s    		c         C   sH   |  j  } |  j d ƒ } t ƒ  } t j | | ƒ | | j ƒ  d ƒ d  S(   Ns
   msg_39.txts“   multipart/mixed
    multipart/mixed
        multipart/alternative
        application/octet-stream
        application/octet-stream
    text/plain
(   R8   R=   R    R   Rx  R0   (   R1   RE   R<   R~   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_nested_with_same_boundaryž  s    		c         C   s)   |  j  d ƒ } |  j | j ƒ  d ƒ d  S(   Ns
   msg_40.txtsÅ   MIME-Version: 1.0
Content-Type: text/html; boundary="--961284236552522269"

----961284236552522269
Content-Type: text/html;
Content-Transfer-Encoding: 7Bit

<html></html>

----961284236552522269--
(   R=   RC   Rh   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_boundary_in_non_multipart¯  s    c         C   s[   |  j  } t j d ƒ } |  j | j ƒ  ƒ | | j ƒ  d ƒ | t | j ƒ  ƒ d ƒ d  S(   Nsž   MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="    XXXX"

--    XXXX
Content-Type: text/plain


--    XXXX
Content-Type: text/plain

--    XXXX--
s       XXXXi   (   RC   R9   R–   R�   RD  R^   R*  RV   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt    test_boundary_with_leading_space¾  s    		c         C   s5   t  ƒ  j d ƒ } |  j | j d ƒ j ƒ  d ƒ d  S(   Nsò   Content-Type: multipart/mixed; boundary="===============0012394164=="
MIME-Version: 1.0

--===============0012394164==
Content-Type: image/file1.jpg
MIME-Version: 1.0
Content-Transfer-Encoding: base64

YXNkZg==
--===============0012394164==--i    s   YXNkZg==(   R   Rk   RC   RV   (   R1   R  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt&   test_boundary_without_trailing_newlineÑ  s    	
	(   R>   R?   R$  Rg  Rh  Rj  Rm  Rn  Ro  Rp  Rq  Rr  Rs  Rv  Rw  Ry  Rz  R{  R|  R}  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRN  c  s$   	(																t   TestNonConformantc           B   sY   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   c         C   sU   |  j  } |  j d ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ | | j ƒ  d ƒ d  S(   Ns
   msg_14.txts
   text/plainR€   RÌ   (   RC   R=   RK   RÄ   RÍ   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_parse_missing_minor_typeã  s
    	c         C   sk   |  j  d ƒ } | j d ƒ } |  j t | d ƒ ƒ |  j t | j ƒ d ƒ |  j | j d t j	 ƒ d  S(   Ns
   msg_15.txti    t   defectsi   (
   R=   RV   R�   t   hasattrRC   R*  R€  t   assertIsInstanceR   t   StartBoundaryNotFoundDefect(   R1   R<   t   inner(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_same_boundary_inner_outerê  s    c         C   sv   |  j  d ƒ } |  j | j ƒ  t ƒ |  j t | j ƒ d ƒ |  j | j d t j ƒ |  j | j d t j	 ƒ d  S(   Ns
   msg_25.txti   i    i   (
   R=   R‚  RV   R*   RC   R*  R€  R   t   NoBoundaryInMultipartDefectt!   MultipartInvariantViolationDefect(   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_multipart_no_boundaryó  s    
c         C   sá   |  j  } |  j } t ƒ  } d | d <| | j ƒ  d ƒ | | j ƒ  d ƒ | | j ƒ  d ƒ | d =d | d <| | j ƒ  d ƒ | | j ƒ  d ƒ | | j ƒ  d ƒ t ƒ  } t | ƒ } | j | ƒ | | j	 ƒ  d ƒ d  S(   NR€   s   Content-TypeRÌ   s
   text/plains   content-typeRx   s   Content-Type: foo

(
   RC   R8   R   RÄ   RÍ   RK   R    R	   Rm   R0   (   R1   RE   t   neqR<   R�   R‚   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_invalid_content_typeü  s     			

	c         C   s/   |  j  } |  j d ƒ } | | j ƒ  d ƒ d  S(   Ns
   msg_31.txtsm   --BOUNDARY
Content-Type: text/plain

message 1

--BOUNDARY
Content-Type: text/plain

message 2

--BOUNDARY--
(   R8   R=   RV   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_no_start_boundary  s    	c         C   s/   |  j  } |  j d ƒ } | | j ƒ  d ƒ d  S(   Ns
   msg_35.txts‰   From: aperson@dom.ain
To: bperson@dom.ain
Subject: here's something interesting

counter to RFC 2822, there's no separating newline here
(   R8   R=   Rh   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_no_separating_blank_line"  s    	c         C   sv   |  j  d ƒ } |  j t | d ƒ ƒ |  j t | j ƒ d ƒ |  j | j d t j ƒ |  j | j d t j	 ƒ d  S(   Ns
   msg_41.txtR€  i   i    i   (
   R=   R�   R�  RC   R*  R€  R‚  R   R†  R‡  (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_lying_multipart-  s    
c         C   s^   |  j  d ƒ } | j d ƒ j d ƒ } |  j t | j ƒ d ƒ |  j | j d t j ƒ d  S(   Ns
   msg_42.txti   i    (   R=   RV   RC   R*  R€  R‚  R   Rƒ  (   R1   Ri  t   bad(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_missing_start_boundary6  s
    	c         C   s�   |  j  } d } t j | ƒ } | | j ƒ  g  ƒ | | j ƒ  d ƒ | t | j ƒ d ƒ |  j | j d t j	 ƒ | | j d j
 d ƒ d  S(   Ns    Line 1
Line 2
Line 3s   Line 2
Line 3i   i    s    Line 1
(   RC   R9   R–   Rá   RV   R*  R€  R‚  R   t#   FirstHeaderLineIsContinuationDefectt   line(   R1   RE   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt&   test_first_line_is_continuation_headerE  s    	
(   R>   R?   R  R…  Rˆ  RŠ  R‹  RŒ  R�  R�  R’  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR~  â  s   											t   TestRFC2047c           B   sG   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sQ   |  j  } d } t | ƒ } | | d d d	 d
 g ƒ | t t | ƒ ƒ d ƒ d  S(   NsV   Re: =?mac-iceland?q?r=8Aksm=9Arg=8Cs?= baz
 foo bar =?mac-iceland?q?r=8Aksm=9Arg=8Cs?=s   Re:s
   rŠksmšrgŒss   mac-icelands   baz foo barsV   Re: =?mac-iceland?q?r=8Aksm=9Arg=8Cs?= baz foo bar
 =?mac-iceland?q?r=8Aksm=9Arg=8Cs?=(   s   Re:N(   s
   rŠksmšrgŒss   mac-iceland(   s   baz foo barN(   s
   rŠksmšrgŒss   mac-iceland(   RC   R   RI   R*   R   (   R1   RE   R�   t   dh(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_rfc2047_multilineU  s    	
c         C   sZ   |  j  } d } t | ƒ } | | d d g ƒ t t | ƒ ƒ j d ƒ } | | d ƒ d  S(	   Ns0   =?ISO-8859-1?Q?Andr=E9?= Pirard <pirard@dom.ain>s   Andrés
   iso-8859-1s   Pirard <pirard@dom.ain>s   latin-1s   André Pirard <pirard@dom.ain>(   s   Andrés
   iso-8859-1(   s   Pirard <pirard@dom.ain>N(   RC   R   RI   t   unicodeR   Rø   (   R1   RE   R�   R”  t   hu(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_whitespace_eater_unicodec  s    	c         C   sW   |  j  } d } t | ƒ } | | d d	 d
 d g ƒ t | ƒ j ƒ  } | | d ƒ d  S(   NsW   The =?iso-8859-1?b?cXVpY2sgYnJvd24gZm94?= jumped over the =?iso-8859-1?b?bGF6eSBkb2c=?=t   Thes   quick brown foxs
   iso-8859-1s   jumped over thes   lazy dogu,   The quick brown fox jumped over the lazy dog(   R™  N(   s   quick brown foxs
   iso-8859-1(   s   jumped over theN(   s   lazy dogs
   iso-8859-1(   RC   R   RI   R   t   __unicode__(   R1   RE   R�   R”  R—  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_whitespace_eater_unicode_2k  s    	c         C   s/   d } t  | ƒ } |  j | | d  f g ƒ d  S(   Ns3   Sm=?ISO-8859-1?B?9g==?=rg=?ISO-8859-1?B?5Q==?=sbord(   R   RC   RI   (   R1   R�   R”  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_rfc2047_without_whitespacet  s    c         C   s5   d } t  | ƒ } |  j | d d	 d
 d d g ƒ d  S(   Ns7   Sm =?ISO-8859-1?B?9g==?= rg =?ISO-8859-1?B?5Q==?= sbordt   Sms   ös
   iso-8859-1t   rgs   åt   sbord(   R�  N(   s   ös
   iso-8859-1(   Rž  N(   s   ås
   iso-8859-1(   RŸ  N(   R   RC   RI   (   R1   R�   R”  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_rfc2047_with_whitespacey  s
    c         C   s_   d } d
 d d d d g } x= | D]5 \ } } t  | | ƒ } |  j | | d	 f g ƒ q" Wd  S(   Ns   =?iso-8859-1?B?%s?=s   dm==t   vs   dm=t   dms   dmk=t   vit   dmks
   iso-8859-1(   s   dm==R¡  (   s   dm=R¡  (   R¢  R¡  (   s   dmk=R£  (   R¤  R£  (   R   RC   (   R1   R�   R   t   qt   aR”  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_rfc2047_B_bad_padding€  s    	c         C   s#   d } |  j  t | ƒ d g ƒ d  S(   Ns   =?iso-8859-1?Q?andr=e9=zz?=s   andré=zzs
   iso-8859-1(   s   andré=zzs
   iso-8859-1(   RC   R   (   R1   R�   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_rfc2047_Q_invalid_digitsŠ  s    (	   R>   R?   R•  R˜  R›  Rœ  R   R§  R¨  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR“  T  s   							
t   TestMIMEMessagec           B   s†   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z RS(   c         C   s1   t  d ƒ } z | j ƒ  |  _ Wd  | j ƒ  Xd  S(   Ns
   msg_11.txt(   R(   Rj   t   _textR;   (   R1   R7   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR$  “  s    c         C   s   |  j  t t d ƒ d  S(   Ns   a plain string(   Rc   t	   TypeErrorR   (   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_type_errorš  s    c         C   sŸ   |  j  } d } t ƒ  } | | d <t | ƒ } | | j ƒ  d ƒ | j ƒ  } |  j | t ƒ | t | ƒ d ƒ | d } |  j | | ƒ | | d | ƒ d  S(   Ns   A sub-messageRý   s   message/rfc822i   i    t   subject(	   RC   R   R   RK   RV   R‚  t   listR*  R:  (   R1   RE   R­  R  R   R3  RZ   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_valid_argument�  s    		

c         C   sX   |  j  } t ƒ  } d | d <t ƒ  } d | d <t | ƒ } |  j t j | j | ƒ d  S(   Ns	   subpart 1Rý   s	   subpart 2(   RC   R   R   Rc   R   t   MultipartConversionErrorRT  (   R1   RE   Rt  t   msg2R   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_bad_multipart«  s    		
	
c         C   sr   t  ƒ  } d | d <| j d ƒ t | ƒ } d | d <t ƒ  } t | ƒ } | j | ƒ |  j | j ƒ  d ƒ d  S(   Ns   An enclosed messageRý   s!   Here is the body of the message.
s   The enclosing messagesŽ   Content-Type: message/rfc822
MIME-Version: 1.0
Subject: The enclosing message

Subject: An enclosed message

Here is the body of the message.
(   R   RP   R   R    R	   Rm   RC   R0   (   R1   R  R   R�   R‚   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_generate´  s    	

	c         C   sœ   |  j  } |  j d ƒ } | | j ƒ  d ƒ | j ƒ  } |  j | t ƒ | t | ƒ d ƒ | d } |  j | t ƒ | | d d ƒ | | j ƒ  d ƒ d  S(   Ns
   msg_11.txts   message/rfc822i   i    R­  s   An enclosed messages!   Here is the body of the message.
(   RC   R=   RK   RV   R‚  R®  R*  R   (   R1   RE   R<   R3  t   submsg(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_parse_message_rfc822È  s    	
c         C   s-  |  j  } |  j d ƒ } | | j ƒ  d ƒ |  j | j ƒ  ƒ | t | j ƒ  ƒ d ƒ | j d ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ | j d ƒ } | | j ƒ  d ƒ | t | j ƒ  ƒ d	 ƒ | j d ƒ } |  j | t ƒ | | d
 d ƒ | | j	 d d d ƒd ƒ | | j	 d d d ƒd  ƒ | j d ƒ } |  j | t ƒ | | d d ƒ | | j d d ƒ d d g ƒ | | j	 d d d ƒd ƒ | j d	 ƒ } | | j ƒ  d ƒ | j ƒ  } |  j | t ƒ | t | ƒ d ƒ | d } |  j | t ƒ | | j ƒ  d ƒ | | d d ƒ d  S(   Ns
   msg_16.txts   multipart/reporti   i    s
   text/plains¶  This report relates to a message you sent with the following header fields:

  Message-id: <002001c144a6$8752e060$56104586@oxy.edu>
  Date: Sun, 23 Sep 2001 20:10:55 -0700
  From: "Ian T. Henry" <henryi@oxy.edu>
  To: SoCal Raves <scr@socal-raves.org>
  Subject: [scr] yeah for Ians!!

Your message cannot be delivered to the following recipients:

  Recipient address: jangel1@cougar.noc.ucla.edu
  Reason: recipient reached disk quota

i   s   message/delivery-statusi   s   original-envelope-ids"   0GK500B4HD0888@cougar.noc.ucla.edut   dnsRe   s   reporting-mtaR   t   nsdt   actiont   faileds   original-recipientRÏ   s   jangel1@cougar.noc.ucla.edus   final-recipients   message/rfc822s
   message-ids(   <002001c144a6$8752e060$56104586@oxy.edu>(   RÏ   R   (   s   jangel1@cougar.noc.ucla.eduR   (   RC   R=   RK   R�   RD  R*  RV   R‚  R   RL   RI   RŸ   R®  (   R1   RE   R<   RZ   t   dsn1t   dsn2R3  Ru  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_dsnÔ  sB    	

c   	      C   sí   |  j  } t d ƒ } z | j ƒ  } Wd  | j ƒ  Xt ƒ  } d | d <d | d <d | d <d | _ d	 | _ t d
 ƒ } t d ƒ } | j d d d d ƒ| j	 | ƒ | j	 | ƒ t
 ƒ  } t | ƒ } | j | ƒ | | j ƒ  | ƒ d  S(   Ns
   msg_21.txts   aperson@dom.ainR…   s   bperson@dom.ainRŠ   R	  Rý   s   MIME messages   End of MIME message
RØ   RÚ   s   Content-Types   multipart/mixedR¡   R]   (   R8   R(   Rj   R;   R   Rk  Rl  R   R·   RT  R    R	   Rm   R0   (	   R1   RE   R7   R€   R<   Rt  R±  R~   R‚   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_epilogue  s(    		


			c         C   s¡   |  j  } t ƒ  } d | d <d | d <d | d <d | _ d | _ t d	 ƒ } t d
 ƒ } | j d d d d ƒ| j | ƒ | j | ƒ | | j ƒ  d ƒ d  S(   Ns   aperson@dom.ainR…   s   bperson@dom.ainRŠ   R	  Rý   s   MIME messageR   RØ   RÚ   s   Content-Types   multipart/mixedR¡   R]   sd  From: aperson@dom.ain
To: bperson@dom.ain
Subject: Test
Content-Type: multipart/mixed; boundary="BOUNDARY"

MIME message
--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

One
--BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

Two
--BOUNDARY--
(   R8   R   Rk  Rl  R   R·   RT  Rh   (   R1   RE   R<   Rt  R±  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_no_nl_preamble$  s    		


		c         C   s  |  j  } t d ƒ } z t j | ƒ } Wd  | j ƒ  X| j d ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ | j d ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ | j d ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ | j d ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ d  S(   Ns
   msg_30.txti    s   message/rfc822i   s
   text/plain(   RC   R(   R9   R:   R;   RV   t   get_default_typeRK   (   R1   RE   R7   R<   t
   container1t
   container2t   container1at   container2a(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_default_typeG  s"    	c         C   s  |  j  } t d ƒ } z t j | ƒ } Wd  | j ƒ  X| j d ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ | j d ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ | j d ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ | j d ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ d  S(   Ns
   msg_28.txti    s   message/rfc822i   s
   text/plain(   RC   R(   R9   R:   R;   RV   R¿  RK   (   R1   RE   R7   R<   RÀ  RÁ  RÂ  RÃ  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt.   test_default_type_with_explicit_container_type[  s"    	c         C   sX  |  j  } |  j } t d d ƒ } d | _ t d ƒ } t d ƒ } t | ƒ } t | ƒ } | j | ƒ | j | ƒ | | j ƒ  d ƒ | | j ƒ  d ƒ | | j ƒ  d ƒ | | j ƒ  d ƒ | | j	 d ƒ d ƒ | d	 =| d
 =| d	 =| d
 =| | j ƒ  d ƒ | | j ƒ  d ƒ | | j ƒ  d ƒ | | j ƒ  d ƒ | | j	 d ƒ d ƒ d  S(   Nt   digestR]   R   s
   message 1
s
   message 2
s   message/rfc822i    s   Content-Type: multipart/digest; boundary="BOUNDARY"
MIME-Version: 1.0

--BOUNDARY
Content-Type: message/rfc822
MIME-Version: 1.0

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

message 1

--BOUNDARY
Content-Type: message/rfc822
MIME-Version: 1.0

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

message 2

--BOUNDARY--
s   content-types   mime-versionsB  Content-Type: multipart/digest; boundary="BOUNDARY"
MIME-Version: 1.0

--BOUNDARY

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

message 1

--BOUNDARY

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

message 2

--BOUNDARY--
(
   RC   R8   R   Rl  R   R   RT  RK   R¿  Rh   (   R1   RE   R‰  R[  t	   subpart1at	   subpart2at   subpart1t   subpart2(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_default_type_non_parsedo  s4    			c         C   s   |  j  } t d ƒ } t d ƒ } t d | | f ƒ } | t | j ƒ  ƒ d ƒ | | j d ƒ | ƒ | | j d ƒ | ƒ d  S(   NR   t	   _subpartsi   i    i   (   RC   R   R   R*  RV   (   R1   RE   t   text1t   text2R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt$   test_mime_attachments_in_constructor¹  s    	c         C   s    t  ƒ  } |  j | j ƒ  ƒ d  S(   N(   R   R�   RD  (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt"   test_default_multipart_constructorÂ  s    	(   R>   R?   R$  R¬  R¯  R²  R³  Rµ  R¼  R½  R¾  RÄ  RÅ  RË  RÏ  RÐ  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR©  ’  s   								9		#			J		t   TestIdempotentc           B   sÎ   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sC   t  | ƒ } z | j ƒ  } Wd  | j ƒ  Xt j | ƒ } | | f S(   N(   R(   Rj   R;   R9   R–   (   R1   R&   R7   R   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR=   Í  s    c         C   sH   |  j  } t ƒ  } t | d d ƒ} | j | ƒ | | | j ƒ  ƒ d  S(   Nt   maxheaderleni    (   R8   R    R	   Rm   R0   (   R1   R<   R€   RE   R�   R‚   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   _idempotentÖ  s
    		c         C   s¸   |  j  } |  j d ƒ \ } } | | j ƒ  d ƒ | | j ƒ  d ƒ | | j ƒ  d ƒ | | j ƒ  d d ƒ | | j d ƒ d ƒ | | j d  ƒ | | j	 d  ƒ |  j
 | | ƒ d  S(	   Ns
   msg_01.txts
   text/plainR€   RÌ   i   RG   s   us-ascii(   RG   s   us-ascii(   RC   R=   RK   RÄ   RÍ   RŸ   RL   Rk  RI   Rl  RÓ  (   R1   RE   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_parse_text_messageÝ  s    	c         C   sn   |  j  } |  j d ƒ \ } } | | j ƒ  d ƒ | | j ƒ  d  ƒ | | j d ƒ d  ƒ |  j | | ƒ d  S(   Ns
   msg_03.txts
   text/plainRG   (   RC   R=   RK   RŸ   RI   RL   RÓ  (   R1   RE   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_parse_untyped_messageé  s    	c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_04.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_simple_multipartñ  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_02.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_MIME_digestõ  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_27.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_long_headerù  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_28.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt"   test_MIME_digest_with_part_headersý  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_06.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_mixed_with_image  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_05.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_multipart_report  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_16.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR¼  	  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_21.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_preamble_epilogue  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_23.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_multipart_one_part  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_24.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_multipart_no_parts  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_31.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR‹    s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_32.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_rfc2231_charset  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_33.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_more_rfc2231_parameters!  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_34.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt%   test_text_plain_in_a_multipart_digest%  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns   msg_12a.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_nested_multipart_mixeds)  s    c         C   s)   |  j  d ƒ \ } } |  j | | ƒ d  S(   Ns
   msg_36.txt(   R=   RÓ  (   R1   R<   R€   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt%   test_message_external_body_idempotent-  s    c         C   sµ  |  j  } |  j d ƒ \ } } | | j ƒ  d ƒ i  } x$ | j ƒ  D] \ } } | | | <qD W| | d d ƒ | | d d ƒ | | j d ƒ | | j d ƒ | t | j ƒ  ƒ d	 ƒ | j d
 ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ | j d ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ | j d ƒ }	 | |	 j ƒ  d ƒ |  j |	 t	 ƒ |	 j ƒ  }
 |  j |
 t
 ƒ | t |
 ƒ d ƒ |
 d
 } |  j | t	 ƒ | | j ƒ  d ƒ d  S(   Ns
   msg_05.txts   multipart/reports   report-types   delivery-statusR¡   s%   D1690A7AC1.996856090/mail.example.coms%   This is a MIME-encapsulated message.
s   
i   i    s
   text/plains   Yadda yadda yadda
i   i   s   message/rfc822(   RC   R=   RK   RŸ   Rk  Rl  R*  RV   R‚  R   R®  (   R1   RE   R<   R€   t   paramst   pkt   pvRt  R±  t   msg3R3  t   msg4(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_content_type1  s4    	
c         C   sº   |  j  } |  j d ƒ \ } } | | j ƒ  d ƒ | j ƒ  } |  j | t ƒ | t | ƒ d ƒ | d } |  j | t ƒ | | j ƒ  d ƒ |  j | j ƒ  t ƒ | | j ƒ  d ƒ d  S(   Ns
   msg_06.txts   message/rfc822i   i    s
   text/plains   
(	   RC   R=   RK   RV   R‚  R®  R*  R   R*   (   R1   RE   R<   R€   R3  Rt  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_parserP  s    	
(   R>   R?   R=   RÓ  RÔ  RÕ  RÖ  R×  RØ  RÙ  RÚ  RÛ  R¼  RÜ  RÝ  RÞ  R‹  Rß  Rà  Rá  Râ  Rã  Ré  Rê  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRÑ  Ì  s,   																						t   TestMiscellaneousc           B   sC  e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d  „  Z" d! „  Z# d" „  Z$ RS(#   c         C   s{   t  d ƒ } z | j ƒ  } Wd  | j ƒ  Xt j | ƒ } t ƒ  } t | d d ƒ} | j | ƒ |  j | | j	 ƒ  ƒ d  S(   Ns
   msg_01.txtRÒ  i    (
   R(   Rj   R;   R9   R–   R    R	   Rm   RC   R0   (   R1   R7   R€   R<   R�   R‚   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_message_from_stringd  s    	c         C   sˆ   t  d ƒ } zj | j ƒ  } | j d ƒ t j | ƒ } t ƒ  } t | d d ƒ} | j | ƒ |  j | | j	 ƒ  ƒ Wd  | j
 ƒ  Xd  S(   Ns
   msg_01.txti    RÒ  (   R(   Rj   t   seekR9   R:   R    R	   Rm   RC   R0   R;   (   R1   R7   R€   R<   R�   R‚   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_message_from_filer  s    	c         C   sÉ   t  d ƒ } z | j ƒ  } Wd  | j ƒ  Xd t f d „  ƒ  Y} t j | | ƒ } |  j | | ƒ t  d ƒ } z | j ƒ  } Wd  | j ƒ  Xt j | | ƒ } x$ | j ƒ  D] } |  j | | ƒ q« Wd  S(   Ns
   msg_01.txtt	   MyMessagec           B   s   e  Z RS(    (   R>   R?   (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRï  ˆ  s   s
   msg_02.txt(   R(   Rj   R;   R   R9   R–   R‚  t   walk(   R1   R7   R€   Rï  R<   RZ   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt#   test_message_from_string_with_class�  s    c         C   s±   d t  f d „  ƒ  Y} t d ƒ } z t j | | ƒ } Wd  | j ƒ  X|  j | | ƒ t d ƒ } z t j | | ƒ } Wd  | j ƒ  Xx$ | j ƒ  D] } |  j | | ƒ q“ Wd  S(   NRï  c           B   s   e  Z RS(    (   R>   R?   (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRï  ™  s   s
   msg_01.txts
   msg_02.txt(   R   R(   R9   R:   R;   R‚  Rð  (   R1   Rï  R7   R<   RZ   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt!   test_message_from_file_with_class—  s    c      "   C   s“   t  d ƒ } | j } | j ƒ  |  j | d d d d d d d d	 d
 d d d d d d d d d d d d d d d d d d d d d d  d! g  ƒ d  S("   NR9   R   R   R   R	   R   R   R   R   R   R   R   t   MIMENonMultipartR   R   R   R   R   t
   base64mimeRG   t   encoderst   errorst	   generatorRe   t	   iteratorsRÆ   R:   R–   t   mimeRp   R   t
   quoprimimet   utils(   t
   __import__t   __all__t   sortRC   (   R1   t   modulet   all(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test__all__«  s    	
					c         C   sC   t  j  ƒ  } |  j t j t j | ƒ ƒ d  t  j | ƒ d  ƒ d  S(   Ni   (   RU  RC   R   t	   parsedatet
   formatdatet   gmtime(   R1   R^  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_formatdate½  s    c         C   sI   t  j  ƒ  } |  j t j t j | d t ƒƒ d  t  j | ƒ d  ƒ d  S(   NRV  i   (   RU  RC   R   R  R  Rl   RV  (   R1   R^  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_formatdate_localtimeÂ  s    c         C   s~   t  j  ƒ  } |  j t j | d t ƒt  j d t  j | ƒ ƒ ƒ |  j t j | d t d t ƒt  j d t  j | ƒ ƒ ƒ d  S(   NRV  s   %a, %d %b %Y %H:%M:%S -0000t   usegmts   %a, %d %b %Y %H:%M:%S GMT(   RU  RC   R   R  Rn   RY  R  Rl   (   R1   R^  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_formatdate_usegmtÈ  s    c         C   s   |  j  t j d ƒ d  ƒ d  S(   NR   (   RC   R   R  RI   (   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_parsedate_noneÑ  s    c         C   s&   |  j  t j d ƒ t j d ƒ ƒ d  S(   Ns   Wed,3 Apr 2002 14:58:26 +0800s   Wed, 3 Apr 2002 14:58:26 +0800(   RC   R   R  (   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_parsedate_compactÔ  s    c         C   s#   |  j  } | t j d ƒ d ƒ d  S(   Ns   25 Feb 2003 13:47:26 -0800iÓ  i   i   i   i/   i   i    i   iÿÿÿÿi€�ÿÿ(
   iÓ  i   i   i   i/   i   i    i   iÿÿÿÿi€�ÿÿ(   RC   R   t   parsedate_tz(   R1   RE   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_parsedate_no_dayofweekÙ  s    	c         C   s#   |  j  } | t j d ƒ d ƒ d  S(   Ns   5 Feb 2003 13:47:26 -0800iÓ  i   i   i   i/   i   i    i   iÿÿÿÿi€�ÿÿ(
   iÓ  i   i   i   i/   i   i    i   iÿÿÿÿi€�ÿÿ(   RC   R   R  (   R1   RE   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt#   test_parsedate_compact_no_dayofweekÞ  s    	c         C   s×   |  j  } t j d ƒ } t t j | ƒ ƒ } | t j | ƒ d  | d  ƒ | t t j d | ƒ ƒ d ƒ t j d ƒ } t t j | d  ƒ ƒ } | t j | ƒ d  | d  ƒ | t t j d | d  ƒ ƒ d ƒ d  S(   Ns   5 Feb 2003 13:47:26 -0800i   s   %YiÓ  i	   (	   RC   R   R  t   intRU  t   mktimeRV  RY  R  (   R1   RE   t   timetupR  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt+   test_parsedate_acceptable_to_time_functionsã  s    	c         C   s6   |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ d  S(	   Ni²  i   i    iÿÿÿÿiÒ  i.ûÿÿ(
   i²  i   i   i    i    i    iÿÿÿÿiÿÿÿÿiÿÿÿÿi    (
   i²  i   i   i    i    i    iÿÿÿÿiÿÿÿÿiÿÿÿÿiÒ  (   RC   R   t	   mktime_tz(   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_mktime_tzî  s    c         C   sH   |  j  t j d ƒ t j d ƒ ƒ |  j  t j d ƒ t j d ƒ ƒ d S(   s   Test for parsing a date with a two-digit year.

        Parsing a date with a two-digit year should return the correct
        four-digit year. RFC822 allows two-digit years, but RFC2822 (which
        obsoletes RFC822) requires four-digit years.

        s   25 Feb 03 13:47:26 -0800s   25 Feb 2003 13:47:26 -0800s   25 Feb 71 13:47:26 -0800s   25 Feb 1971 13:47:26 -0800N(   RC   R   R  (   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_parsedate_y2kô  s    c         C   s?   |  j  t j d ƒ d ƒ |  j  t j t j d ƒ ƒ d ƒ d  S(   Ns   <>R   (   R   R   (   RC   R   t	   parseaddrt
   formataddr(   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_parseaddr_empty	  s    c         C   sO   |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ d  S(   Ns   a@b@cR   s   a@b.c@cs   a@172.17.0.1@c(   R   R   (   R   R   (   R   R   (   RC   R   R  (   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_parseaddr_multiple_domains	  s    c         C   s   |  j  t j d ƒ d ƒ d  S(   Ns   A Silly Persons   person@dom.ains   A Silly Person <person@dom.ain>(   s   A Silly Persons   person@dom.ain(   RC   R   R  (   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_noquote_dump	  s    c         C   sW   |  j  t j d ƒ d ƒ d } d } |  j  t j t j | | f ƒ ƒ | | f ƒ d  S(   Ns   A (Very) Silly Persons   person@dom.ains*   "A \(Very\) Silly Person" <person@dom.ain>s   A \(Special\) Person(   s   A (Very) Silly Persons   person@dom.ain(   RC   R   R  R  (   R1   R¦  t   b(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_escape_dump	  s    c         C   sW   |  j  t j d ƒ d ƒ d } d } |  j  t j t j | | f ƒ ƒ | | f ƒ d  S(   Ns   Arthur \Backslash\ Foobars   person@dom.ains.   "Arthur \\Backslash\\ Foobar" <person@dom.ain>(   s   Arthur \Backslash\ Foobars   person@dom.ain(   RC   R   R  R  (   R1   R¦  R  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_escape_backslashes 	  s    c         C   sy   d } d } d \ } } |  j  t j | ƒ | | f ƒ |  j  t j | ƒ | | f ƒ |  j  t j | | f ƒ | ƒ d  S(   Ns   John X. Doe <jxd@example.com>s   "John X. Doe" <jxd@example.com>s   John X. Does   jxd@example.com(   s   John X. Does   jxd@example.com(   RC   R   R  R  (   R1   Rç   t   yR¦  R  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_name_with_dot(	  s    c         C   sO   |  j  } | t j d ƒ d ƒ | t j d ƒ d ƒ | t j d ƒ d ƒ d  S(   Ns   ""example" example"@example.comR   s!   "\"example\" example"@example.coms#   "\\"example\\" example"@example.com(   R   s   ""example" example"@example.com(   R   s!   "\"example\" example"@example.com(   R   s#   "\\"example\\" example"@example.com(   RC   R   R  (   R1   RE   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt2   test_parseaddr_preserves_quoted_pairs_in_addresses1	  s    
	c         C   s#   d } |  j  t j | ƒ d ƒ d  S(   Ns   Foo
	Bar <foo@example.com>s   Foo Bars   foo@example.com(   s   Foo Bars   foo@example.com(   RC   R   R  (   R1   Rç   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_multiline_from_commentC	  s    c         C   s   |  j  t j d ƒ d ƒ d  S(   Ns   A Silly; Persons   person@dom.ains"   "A Silly; Person" <person@dom.ain>(   s   A Silly; Persons   person@dom.ain(   RC   R   R  (   R1   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_quote_dumpI	  s    c         C   s{   |  j  } | t j d ƒ d ƒ | t j d ƒ d ƒ | t j d ƒ d ƒ | t j d ƒ d ƒ | t j d ƒ d ƒ d  S(   Nt   hellos   hello
s   hello
s   hellos   hello
s	   hello

(   RC   R   t   fix_eols(   R1   RE   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_fix_eolsN	  s    	c         C   sÞ   |  j  } |  j } t ƒ  } t ƒ  } | | d ƒ | | d ƒ | | d ƒ | d | ƒ | d | ƒ | d | ƒ | | d ƒ | | d ƒ | | d ƒ | d | ƒ | d | ƒ | d | ƒ | | | ƒ | | | ƒ d  S(   Ns   us-asciis   US-ASCIIs   Us-AsCiIt   usasciit   USASCIIt   UsAsCiI(   RC   t   assertNotEqualR   (   R1   RE   t   net   cset1t   cset2(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_charset_richcomparisonsV	  s$    				c         C   s/   |  j  } | t j d d g ƒ d d g ƒ d  S(	   Ns   aperson@dom.ain (Al Person)s   Bud Person <bperson@dom.ain>s	   Al Persons   aperson@dom.ains
   Bud Persons   bperson@dom.ain(   s	   Al Persons   aperson@dom.ain(   s
   Bud Persons   bperson@dom.ain(   RC   R   t   getaddresses(   R1   RE   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_getaddressesj	  s
    		c         C   sm   |  j  } | t j d g ƒ d g ƒ | t j d g ƒ d	 d
 d g ƒ | t j d d g ƒ d d g ƒ d  S(   Ns   foo: ;R   s	   []*-- =~$s   *--s#   "Jason R. Mastaler" <jason@dom.ain>s   Jason R. Mastalers   jason@dom.ain(   R   R   (   R   R   (   R   R   (   R   s   *--(   R   R   (   s   Jason R. Mastalers   jason@dom.ain(   RC   R   R-  (   R1   RE   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_getaddresses_nastyq	  s    				c         C   s4   |  j  } t j d g ƒ } | | d d d ƒ d S(   s(   Test proper handling of a nested comments%   User ((nested comment)) <foo@bar.com>i    i   s   foo@bar.comN(   RC   R   R-  (   R1   RE   t   addrs(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt"   test_getaddresses_embedded_comment{	  s    	c         C   s–   d t  f d „  ƒ  Y} g  t d ƒ D] } | ƒ  ^ q# } t | ƒ � Wd  QXt g  | D] } | j ^ qU g  ƒ } |  j t t | ƒ ƒ t | ƒ ƒ d  S(   Nt   MsgidsThreadc           B   s   e  Z d  „  Z RS(   c         S   s[   g  |  _  |  j  j } t j } t j } | ƒ  d } x  | ƒ  | k  rV | | ƒ  ƒ q7 Wd  S(   Ng      @(   t   msgidsRþ   R   t
   make_msgidRU  (   R1   Rþ   R4  t   clockt   tfin(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   run„	  s    			(   R>   R?   R7  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR2  ƒ	  s   i   (   R   R  R   t   sumR3  RC   R*  t   set(   R1   R2  R  t   threadsR  t   all_ids(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_make_msgid_collisions�	  s    "%c         C   s?   |  j  } t ƒ  } | j d d d d ƒ| | j ƒ  d ƒ d  S(   Ns   content-dispositionR¶   R&   s   foo\wacky"name(   RC   R   R·   RW   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_utils_quote_unquote”	  s
    		c         C   s&   t  d ƒ } |  j | j ƒ  d ƒ d  S(   Ns   not a charsetRæ   (   R   RC   t   get_body_encoding(   R1   RG   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt)   test_get_body_encoding_with_bogus_charset›	  s    c         C   st  |  j  } t ƒ  } d | d <| | d d ƒ | j ƒ  } | t | ƒ d ƒ | | d d ƒ t | d ƒ } | | j ƒ  d ƒ | j d d	 | ƒ| | j ƒ  d
 ƒ | | j d t ƒ d ƒ | | d d ƒ t ƒ  } d | d <| j ƒ  } | t | ƒ d ƒ | | d d ƒ t | d ƒ } | | j ƒ  t	 j
 ƒ | j d d	 | ƒ| | j ƒ  d ƒ | | d d ƒ d  S(   Ns   text/plain; charset=UTF-8s   Content-Types   content-typei   i    s   utf-8Ræ   s   hello worldRG   s   aGVsbG8gd29ybGQ=
Rt   s   content-transfer-encodings   text/plain; charset="US-ASCII"s   us-asciiRï   (   RC   R   RS   R*  R   R>  RP   RV   Rl   R   t   encode_7or8bit(   R1   RE   R<   RT   RG   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt-   test_get_body_encoding_with_uppercase_charsetŸ	  s.    		
	
c         C   s8   t  d ƒ } t  d ƒ } |  j | j ƒ  | j ƒ  ƒ d  S(   Ns   us-asciis   US-ASCII(   R   RC   R>  (   R1   t   lct   uc(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_charsets_case_insensitive¹	  s    c         C   sH   |  j  } |  j d ƒ } t ƒ  } t j | | ƒ | | j ƒ  d ƒ d  S(   Ns
   msg_43.txtsB  multipart/report
    text/plain
    message/delivery-status
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
        text/plain
    text/rfc822-headers
(   R8   R=   R    R   Rx  R0   (   R1   RE   R<   R~   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt1   test_partial_falls_inside_message_delivery_status¾	  s    		(%   R>   R?   Rì  Rî  Rñ  Rò  R  R  R  R  R	  R
  R  R  R  R  R  R  R  R  R  R  R  R  R   R!  R$  R,  R.  R/  R1  R<  R=  R?  RA  RD  RE  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRë  c  sF   																														
						t   TestIteratorsc           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sæ   |  j  } |  j } |  j d ƒ } t j | ƒ } t | ƒ } | t | ƒ d ƒ | t j | ƒ | j	 ƒ  ƒ |  j d ƒ } t j | ƒ } t | ƒ } | t | ƒ d ƒ t
 d ƒ } z  | t j | ƒ | j ƒ  ƒ Wd  | j ƒ  Xd  S(   Ns
   msg_01.txti   s
   msg_02.txti+   s
   msg_19.txt(   RC   R8   R=   R   t   body_line_iteratorR®  R*  t   EMPTYSTRINGR"   RV   R(   Rj   R;   (   R1   RE   R‰  R<   t   itR“   R7   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_body_line_iteratorì	  s    		 c         C   s‹   |  j  } |  j d ƒ } t j | d ƒ } g  } d } x+ | D]# } | d 7} | j | j ƒ  ƒ q= W| | d ƒ | t j | ƒ d ƒ d  S(   Ns
   msg_04.txtR€   i    i   i   s`   a simple kind of mirror
to reflect upon our own
a simple kind of mirror
to reflect upon our own
(   RC   R=   R   t   typed_subpart_iteratorRþ   RV   RH  R"   (   R1   RE   R<   RI  R“   t   subpartsRZ   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_typed_subpart_iterator 
  s    	
c         C   sŽ   |  j  } |  j d ƒ } t j | d d ƒ } g  } d } x+ | D]# } | d 7} | j | j ƒ  ƒ q@ W| | d ƒ | t j | ƒ d ƒ d  S(   Ns
   msg_03.txtR€   RÌ   i    i   s%   
Hi,

Do you like this message?

-Me
(   RC   R=   R   RK  Rþ   RV   RH  R"   (   R1   RE   R<   RI  R“   RL  RZ   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt(   test_typed_subpart_iterator_default_type
  s    	
c      	   C   s  d d d d d d d d g } d d l  m } m } | ƒ  } g  } d } xu | D]m \ } } | j | ƒ | | 7} d }	 x1 t | j | ƒ D] }
 | j |
 ƒ |	 d 7}	 qŒ W|  j | |	 ƒ qP W|  j t | ƒ | ƒ |  j d j	 g  | D] \ } } | ^ qê ƒ d j	 | ƒ ƒ d S(   sÂ   FeedParser BufferedSubFile.push() assumed it received complete
           line endings.  A CR ending one push() followed by a LF starting
           the next push() added an empty line.
        s   a 
i   R  i    s   c
i   R   s   d
s   es   
fs   
iÿÿÿÿ(   t   BufferedSubFilet   NeedMoreDataN(   s   a 
i   (   R  i    (   s   c
i   (   R   i    (   s   d
i   (   s   ei    (   s   
fi   (   s   
i   (
   t   email.feedparserRO  RP  t   pusht   itert   readlineRþ   RC   R*  R"   (   R1   t   imtRO  RP  t   bsft   omt   ntt   ilt   nt   n1t   ol(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_pushCR_LF$
  s,    		
c            sÝ   d d l  m } m } d } d } d ‰  d j ‡  f d †  t | ƒ Dƒ ƒ d } | j t ƒ } | ƒ  } g  } xW t d	 t | ƒ | ƒ D]= }	 | |	 |	 | !}
 | j |
 ƒ | j	 t
 | j | ƒ ƒ qˆ W|  j | | ƒ d  S(
   Niÿÿÿÿ(   RO  RP  i'  i   s   abcd 	
R   c         3   s   |  ] } t  ˆ  ƒ Vq d  S(   N(   R   (   t   .0R  (   t   chars(    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pys	   <genexpr>I
  s    s   
i    (   RQ  RO  RP  R"   R  R-   Rl   R*  RR  t   extendRS  RT  RC   (   R1   RO  RP  RZ  t	   chunksizeR�   t   targetRV  R“   R  t   chunk(    (   R_  s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_push_randomB
  s    )	(   R>   R?   RJ  RM  RN  R]  Rd  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRF  ë	  s
   				t   TestFeedParsersc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   sA   d d l  m } | ƒ  } x | D] } | j | ƒ q  W| j ƒ  S(   Niÿÿÿÿ(   t
   FeedParser(   RQ  Rf  t   feedR;   (   R1   t   chunksRf  t
   feedparserRc  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   parseW
  s
    	c         C   sÿ   |  j  d g ƒ } |  j | j ƒ  d d d d g ƒ |  j  d g ƒ } |  j | j ƒ  d d d d g ƒ |  j  d d g ƒ } |  j | j ƒ  d d	 g ƒ |  j  d
 d g ƒ } |  j | j ƒ  d d g ƒ |  j  d
 d g ƒ } |  j | j ƒ  d d g ƒ d  S(   Ns   a:
b:c:
d:
R¦  R  t   ct   ds   a:
b:c:
d:s   a:bs   c:
t   bcs   a:s   b:
s   
b:
(   Rj  RC   Rá   (   R1   R  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_newlines^
  s    ""c         C   s  d \ } } |  j  d g d | g | ƒ } |  j | j ƒ  d g ƒ |  j | j ƒ  d | | ƒ |  j  d g d | g | ƒ } |  j | j ƒ  d g ƒ |  j | j ƒ  d | | ƒ |  j  d d	 g d | g | ƒ } |  j | j ƒ  d d d | | f g ƒ d  S(   Niè  i N  s   a:b

Rç   R¦  R  s   a:bs   a:s   b: R   (   iè  i N  (   R¦  R  (   R¦  R  (   R¦  R   (   Rj  RC   Ra   RV   (   R1   t   Mt   NR  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_long_linesj
  s    !!$(   R>   R?   Rj  Rn  Rq  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRe  U
  s   		t   TestParsersc           B   sk   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z RS(   c         C   s›   |  j  } t d ƒ } z t ƒ  j | ƒ } Wd  | j ƒ  X| | d d ƒ | | d d ƒ | | j ƒ  d ƒ |  j | j ƒ  ƒ |  j | j	 ƒ  t
 ƒ d  S(   Ns
   msg_02.txtRˆ   s   ppp-request@zzz.orgR‡   s   ppp@zzz.orgs   multipart/mixed(   RC   R(   R   Rj  R;   RK   R®   RD  R‚  RV   R*   (   R1   RE   R7   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_header_parserx
  s    	c         C   sQ   |  j  } t j d ƒ } | | d d ƒ | | d d ƒ | | j ƒ  d ƒ d  S(   Ns¤   From: aperson@dom.ain
To: bperson@dom.ain
Subject: the next line has a space on it
 
Date: Mon, 8 Apr 2002 15:09:19 -0400
Message-ID: spam

Here's the message body
R­  s!   the next line has a space on it
 s
   message-idt   spams   Here's the message body
(   RC   R9   R–   RV   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_whitespace_continuation†
  s    			c         C   sQ   |  j  } t j d ƒ } | | d d ƒ | | d d ƒ | | j ƒ  d ƒ d  S(   Ns¤   From: aperson@dom.ain
To: bperson@dom.ain
Date: Mon, 8 Apr 2002 15:09:19 -0400
Message-ID: spam
Subject: the next line has a space on it
 

Here's the message body
R­  s!   the next line has a space on it
 s
   message-idRt  s   Here's the message body
(   RC   R9   R–   RV   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt(   test_whitespace_continuation_last_header˜
  s    			c         C   s³   |  j  } t d d d ƒ} z t ƒ  j | ƒ } Wd  | j ƒ  X| t | j ƒ  ƒ d ƒ | j d ƒ } | | j ƒ  d ƒ | | j ƒ  d ƒ | j d ƒ } | | j ƒ  d	 ƒ d  S(
   Ns
   msg_26.txtR'   R-  i   i    s
   text/plains!   Simple email with attachment.

i   s   application/riscos(   RC   R(   R   Rj  R;   R*  RV   RK   (   R1   RE   R7   R<   t   part1t   part2(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_crlf_separationª
  s    	c   	      C   s›  |  j  } |  j } t d ƒ } z t j | ƒ } Wd  | j ƒ  X| | j ƒ  d ƒ | t | j ƒ  ƒ d ƒ | j d ƒ } | | j	 ƒ  d ƒ | | j ƒ  d ƒ | t | j ƒ  ƒ d ƒ | j d ƒ } | | j ƒ  d ƒ | | j	 ƒ  d ƒ | | j ƒ  d ƒ | j d ƒ } | | j	 ƒ  d ƒ | | j ƒ  d ƒ | t | j ƒ  ƒ d ƒ | j d ƒ } | | j ƒ  d ƒ | | j	 ƒ  d ƒ | | j ƒ  d ƒ d  S(	   Ns
   msg_28.txti   i   i    s   message/rfc822s
   text/plains
   message 1
s
   message 2
(
   RC   R8   R(   R9   R:   R;   RD  R*  RV   RK   (	   R1   RE   R‰  R7   R<   Rw  t   part1aRx  t   part2a(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt-   test_multipart_digest_with_extra_mime_headers¸
  s0    		c         C   s?   d d d g } t  j t j | ƒ ƒ } |  j | d d ƒ d  S(   Ns$   From: Andrew Person <aperson@dom.ains   Subject: Tests%   Date: Tue, 20 Aug 2002 16:43:45 +1000t   dates   Tue, 20 Aug 2002 16:43:45 +1000(   R9   R–   R.   R"   RC   (   R1   R“   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_three_linesÚ
  s
    	c         C   sd   |  j  } d } d } d | | f } t j | ƒ } | | j d ƒ | ƒ | | j d ƒ | ƒ d  S(   NR€   s	   more texts'   Header: %s
Next-Header: %s

Body

R   s   Next-Header(   RC   R9   R–   t   get(   R1   RE   t   value1t   value2R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt3   test_strip_line_feed_and_carriage_return_in_headersâ
  s    	c         C   sz   |  j  } d } t j | ƒ } | t | j ƒ  ƒ d ƒ | j ƒ  } | j ƒ  | | d d d g ƒ | | j ƒ  d ƒ d  S(   Ns(   >From: foo
From: bar
!"#QUX;~: zoo

bodyi   s   !"#QUX;~s   >FromR…   t   body(   RC   R9   R–   R*  Rá   Rþ  RV   (   R1   RE   R  R<   Rá   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_rfc2822_header_syntaxí
  s    	
c         C   s;   |  j  } d } t j | ƒ } | t | j ƒ  ƒ d ƒ d  S(   Ns<   >From foo@example.com 11:25:53
From: bar
!"#QUX;~: zoo

bodyi    (   RC   R9   R–   R*  Rá   (   R1   RE   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt(   test_rfc2822_space_not_allowed_in_header÷
  s    	c         C   sa   |  j  } d } t j | ƒ } | j ƒ  } | j ƒ  | | d d d g ƒ | | j ƒ  d ƒ d  S(   Ns7   A: first header
B: second header
CC: third header

bodyt   At   Bt   CCRƒ  (   RC   R9   R–   Rá   Rþ  RV   (   R1   RE   R  R<   t   headers(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt!   test_rfc2822_one_character_headerý
  s    	
c         C   s>   d } t  j | ƒ } |  j | j d ƒ j ƒ  j d ƒ ƒ d  S(   Ns°   From: foo@bar.com
To: baz
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=BOUNDARY

--BOUNDARY
Content-Type: text/plain

body ending with CRLF newline

--BOUNDARY--
i    s   
(   R9   R–   R�   RV   t   endswith(   R1   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_CRLFLF_at_end_of_part  s    (   R>   R?   Rs  Ru  Rv  Ry  R|  R~  R‚  R„  R…  RŠ  RŒ  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRr  w
  s   					"			
			t
   TestBase64c           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   sØ   |  j  } | t j d ƒ t t j d d d ƒƒ ƒ x� t d ƒ D]� } | d k r\ d } nZ | d k rq d } nE | d k r† d	 } n0 | d
 k r› d } n | d k r° d } n d } | t j d | ƒ | ƒ qA Wd  S(   NR"  t   eolR   i   i    i   i   i   i   i	   i   i   i   Rç   (   RC   R   t
   base64_lenR*  Rø   R  (   R1   RE   t   sizet   bsize(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_len  s     	 	 	 	 	 	c         C   sk   |  j  } | t j d ƒ d ƒ | t j d ƒ d ƒ | t j d d ƒ d ƒ | t j d d ƒ d ƒ d  S(   NR   s   aGVsbG8=R"  t   Xs   aGVsbG8NCndvcmxk
t   helloXworld(   RC   R   Rt   (   R1   RE   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_decode(  s
    	c         C   s®   |  j  } | t j d ƒ d ƒ | t j d ƒ d ƒ | t j d ƒ d ƒ | t j d d ƒ d ƒ | t j d d	 d
 d ƒd ƒ | t j d d	 d
 d d d ƒd ƒ d  S(   NR   R"  s	   aGVsbG8=
s   hello
s	   aGVsbG8K
i    s   aGVsbG8NCg==
s   xxxx i   R  i(   sŒ   eHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg
eHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg
eHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg
eHh4eCB4eHh4IA==
RŽ  s   
s�   eHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg
eHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg
eHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg
eHh4eCB4eHh4IA==
(   RC   R   Rø   (   R1   RE   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_encode/  s    	c         C   s®   |  j  } t j } | | d ƒ d ƒ | | d ƒ d ƒ | | d d d ƒd ƒ | | d d t ƒd	 ƒ | | d
 d d d ƒd ƒ | | d
 d d d d d ƒd ƒ d  S(   NR"  s   =?iso-8859-1?b?aGVsbG8=?=s   hello
worlds!   =?iso-8859-1?b?aGVsbG8NCndvcmxk?=RG   s
   iso-8859-2s   =?iso-8859-2?b?aGVsbG8=?=t	   keep_eolss!   =?iso-8859-1?b?aGVsbG8Kd29ybGQ=?=s   xxxx i   R  i(   sü   =?iso-8859-1?b?eHh4eCB4eHh4IHh4eHggeHg=?=
 =?iso-8859-1?b?eHggeHh4eCB4eHh4IHh4eHg=?=
 =?iso-8859-1?b?IHh4eHggeHh4eCB4eHh4IHg=?=
 =?iso-8859-1?b?eHh4IHh4eHggeHh4eCB4eHg=?=
 =?iso-8859-1?b?eCB4eHh4IHh4eHggeHh4eCA=?=
 =?iso-8859-1?b?eHh4eCB4eHh4IHh4eHgg?=RŽ  s   
s  =?iso-8859-1?b?eHh4eCB4eHh4IHh4eHggeHg=?=
 =?iso-8859-1?b?eHggeHh4eCB4eHh4IHh4eHg=?=
 =?iso-8859-1?b?IHh4eHggeHh4eCB4eHh4IHg=?=
 =?iso-8859-1?b?eHh4IHh4eHggeHh4eCB4eHg=?=
 =?iso-8859-1?b?eCB4eHh4IHh4eHggeHh4eCA=?=
 =?iso-8859-1?b?eHh4eCB4eHh4IHh4eHgg?=(   RC   R   t   header_encodeRl   (   R1   RE   t   he(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_header_encodeE  s    		(   R>   R?   R’  R•  R–  Rš  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR�    s   			t
   TestQuopric           B   sY   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   c         C   sÝ  g  t  t d ƒ t d ƒ d ƒ D] } t | ƒ ^ q  g  t  t d ƒ t d ƒ d ƒ D] } t | ƒ ^ qU g  t  t d ƒ t d ƒ d ƒ D] } t | ƒ ^ q‹ d d	 d
 d d d g |  _ g  t  d ƒ D]' } t | ƒ |  j k rÊ t | ƒ ^ qÊ |  _ t |  j ƒ t |  j ƒ d k s"t ‚ g  t  t d ƒ t d ƒ d ƒ D] } t | ƒ ^ qBd g |  _ |  j j d ƒ g  t  d ƒ D]' } t | ƒ |  j k r�t | ƒ ^ q�|  _	 t |  j ƒ t |  j	 ƒ d k sÙt ‚ d  S(   NR¦  t   zi   R†  t   Zt   0t   9t   !t   *RR  RQ  t   /R   i   t   ~s   	t   =(
   R  t   ordt   chrt   hlitt   hnonR*  t   AssertionErrort   blitt   removet   bnon(   R1   Rç   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR$  c  s    ¡=(B=c         C   sX   x' |  j  D] } |  j t j | ƒ ƒ q
 Wx' |  j D] } |  j t j | ƒ ƒ q4 Wd  S(   N(   R§  R®   R   t   header_quopri_checkR¨  R�   (   R1   Rk  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_header_quopri_checko  s    c         C   sX   x' |  j  D] } |  j t j | ƒ ƒ q
 Wx' |  j D] } |  j t j | ƒ ƒ q4 Wd  S(   N(   Rª  R®   R   t   body_quopri_checkR¬  R�   (   R1   Rk  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_body_quopri_checku  s    c      
   C   s­   |  j  } t j } t j } x= d	 D]5 } | | | ƒ t | | d d d d ƒƒ d ƒ q" Wx$ |  j D] } | | | ƒ d ƒ qe Wx$ |  j D] } | | | ƒ d ƒ qŒ Wd  S(
   NR"  s
   h@e@l@l@o@RG   R   RŽ  i   i   i   (   R"  s
   h@e@l@l@o@(   RC   R   t   header_quopri_lenR˜  R*  R§  R¨  (   R1   RE   t   hqlt   encR�   Rk  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_header_quopri_len{  s    			3c         C   sd   |  j  } t j } x$ |  j D] } | | | ƒ d ƒ q Wx$ |  j D] } | | | ƒ d ƒ qC Wd  S(   Ni   i   (   RC   R   t   body_quopri_lenRª  R¬  (   R1   RE   t   bqlRk  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_body_quopri_len‡  s    		c         C   sI   xB t  d ƒ D]4 } t | ƒ } |  j t j t j | ƒ ƒ | ƒ q Wd  S(   Ni   (   R  R¦  RC   R   R¨   t   quote(   R1   Rç   Rk  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_quote_unquote_idempotent�  s    c         C   sÁ   |  j  } t j } | | d ƒ d ƒ | | d ƒ d ƒ | | d d d ƒd ƒ | | d d t ƒd	 ƒ | | d
 ƒ d ƒ | | d d d d ƒd ƒ | | d d d d d d ƒd ƒ d  S(   NR"  s   =?iso-8859-1?q?hello?=s   hello
worlds!   =?iso-8859-1?q?hello=0D=0Aworld?=RG   s
   iso-8859-2s   =?iso-8859-2?q?hello?=R—  s   =?iso-8859-1?q?hello=0Aworld?=s   helloÇtheres   =?iso-8859-1?q?hello=C7there?=s   xxxx i   R  i(   sÁ   =?iso-8859-1?q?xxxx_xxxx_xxxx_xxxx_xx?=
 =?iso-8859-1?q?xx_xxxx_xxxx_xxxx_xxxx?=
 =?iso-8859-1?q?_xxxx_xxxx_xxxx_xxxx_x?=
 =?iso-8859-1?q?xxx_xxxx_xxxx_xxxx_xxx?=
 =?iso-8859-1?q?x_xxxx_xxxx_?=RŽ  s   
sÅ   =?iso-8859-1?q?xxxx_xxxx_xxxx_xxxx_xx?=
 =?iso-8859-1?q?xx_xxxx_xxxx_xxxx_xxxx?=
 =?iso-8859-1?q?_xxxx_xxxx_xxxx_xxxx_x?=
 =?iso-8859-1?q?xxx_xxxx_xxxx_xxxx_xxx?=
 =?iso-8859-1?q?x_xxxx_xxxx_?=(   RC   R   R˜  Rl   (   R1   RE   R™  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRš  ”  s    		c         C   sk   |  j  } | t j d ƒ d ƒ | t j d ƒ d ƒ | t j d d ƒ d ƒ | t j d d ƒ d ƒ d  S(   NR   R"  R“  s   hello
worldR”  (   RC   R   Rt   (   R1   RE   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR•  ®  s
    	c         C   sÄ   |  j  } | t j d ƒ d ƒ | t j d ƒ d ƒ | t j d ƒ d ƒ | t j d d ƒ d ƒ | t j d d d d	 ƒd
 ƒ | t j d d d d	 d d ƒd ƒ | t j d ƒ d ƒ d  S(   NR   R"  s   hello
worlds   hello
worldi    s   xxxx i   R  i(   sj   xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx=
 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxx=
x xxxx xxxx xxxx xxxx=20RŽ  s   
sl   xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx=
 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxx=
x xxxx xxxx xxxx xxxx=20s   one line

two line(   RC   R   Rø   (   R1   RE   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR–  µ  s    		(   R>   R?   R$  R®  R°  R´  R·  R¹  Rš  R•  R–  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR›  b  s   								t   TestCharsetc           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s6   d d l  m } y | j d =Wn t k
 r1 n Xd  S(   Niÿÿÿÿ(   R   t   fake(   R9   R   t   CHARSETSRä   (   R1   t   CharsetModule(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   tearDownÒ  s
    c         C   so   |  j  } t d ƒ } d } | j | ƒ } | | | j | ƒ ƒ d } | j | ƒ } | | | j | ƒ ƒ d  S(   Ns   us-asciis   Hello World!s
   ¤¢¤¤¤¦¤¨¤ª(   RC   R   t   to_splittablet   from_splittable(   R1   RE   Rk  R�   t   sp(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_idempotentÙ  s    	c         C   s  |  j  } t d ƒ } | d | j d ƒ ƒ t d ƒ } | d | j d ƒ ƒ t d ƒ } | d | j d ƒ ƒ t d ƒ } y3 | d	 | j d
 ƒ ƒ | d
 | j d
 t ƒ ƒ Wn t k
 rÁ n Xd d l m } | j d | j d  ƒ t d ƒ } | d | j d ƒ ƒ d  S(   Ns
   iso-8859-1s   hello w=F6rlds   hello wörlds   utf-8s   aGVsbG8gd29ybGQ=
s   hello worlds   us-asciis   euc-jps   $B5FCO;~IW(Bs   µÆÃÏ»þÉ×iÿÿÿÿ(   R   R»  (	   RC   R   t   body_encodeRn   t   LookupErrorR9   t   add_charsett   QPRI   (   R1   RE   Rk  R½  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_body_encodeå  s&    	c         C   s<   t  d ƒ } |  j t | ƒ d ƒ |  j t j t  d ƒ d  S(   Nu   us-asciis   us-asciis   ascÿii(   R   RC   R*   Rc   R   t   CharsetError(   R1   RG   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_unicode_charset_name  s    c         C   s&   t  d ƒ } |  j t | ƒ d ƒ d  S(   NR   s   utf-8(   R   RC   R*   (   R1   RG   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_codecs_aliases_accepted  s    (   R>   R?   R¾  RÂ  RÇ  RÉ  RÊ  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRº  Ñ  s
   				t
   TestHeaderc           B   s¡   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sL   |  j  } t d ƒ } | | j ƒ  d ƒ | j d ƒ | | j ƒ  d ƒ d  S(   Ns   Hello World!s    Goodbye World!s   Hello World!  Goodbye World!(   R8   R   Rø   Rþ   (   R1   RE   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_simple  s
    	c         C   sL   |  j  } t d ƒ } | | j ƒ  d ƒ | j d ƒ | | j ƒ  d ƒ d  S(   Ns   Hello World!s   Goodbye World!s   Hello World! Goodbye World!(   R8   R   Rø   Rþ   (   R1   RE   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_simple_surprise  s
    	c         C   s)   d } |  j  t | ƒ | d  f g ƒ d  S(   Ns   no decoding needed(   RC   R   RI   (   R1   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_header_needs_no_decoding  s    c         C   sR   t  d d d ƒ} x9 | j d d ƒ j d ƒ D] } |  j t | ƒ d ƒ q. Wd  S(   Ns¶  I am the very model of a modern Major-General; I've information vegetable, animal, and mineral; I know the kings of England, and I quote the fights historical from Marathon to Waterloo, in order categorical; I'm very well acquainted, too, with matters mathematical; I understand equations, both the simple and quadratical; about binomial theorem I'm teeming with a lot o' news, with many cheerful facts about the square of the hypotenuse.R  iL   t
   splitcharsR   s   
 (   R   Rø   R�   t   assertLessEqualR*  (   R1   Rú   t   l(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt	   test_long!  s    		"c         C   s  |  j  } t d ƒ } t d ƒ } t d ƒ } d } d } d j d ƒ } t | | ƒ } | j | | ƒ | j | | ƒ | j ƒ  }	 | |	 d ƒ | t |	 ƒ | d f | d f | d f g ƒ t | ƒ }
 | |
 j d ƒ d ƒ t t |	 ƒ ƒ } | | |	 ƒ d  S(	   Ns
   iso-8859-1s
   iso-8859-2s   utf-8s©   Die Mieter treten hier ein werden mit einem Foerderband komfortabel den Korridor entlang, an südlündischen Wandgemälden vorbei, gegen die rotierenden Klingen befördert. s;   Finanèni metropole se hroutily pod tlakem jejich dùvtipu.. uø   æ­£ç¢ºã�«è¨€ã�†ã�¨ç¿»è¨³ã�¯ã�•ã‚Œã�¦ã�„ã�¾ã�›ã‚“ã€‚ä¸€éƒ¨ã�¯ãƒ‰ã‚¤ãƒ„èªžã�§ã�™ã�Œã€�ã�‚ã�¨ã�¯ã�§ã�Ÿã‚‰ã‚�ã�§ã�™ã€‚å®Ÿéš›ã�«ã�¯ã€ŒWenn ist das Nunstuck git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput.ã€�ã�¨è¨€ã�£ã�¦ã�„ã�¾ã�™ã€‚s  =?iso-8859-1?q?Die_Mieter_treten_hier_ein_werden_mit_einem_Foerderband_ko?=
 =?iso-8859-1?q?mfortabel_den_Korridor_entlang=2C_an_s=FCdl=FCndischen_Wan?=
 =?iso-8859-1?q?dgem=E4lden_vorbei=2C_gegen_die_rotierenden_Klingen_bef=F6?=
 =?iso-8859-1?q?rdert=2E_?= =?iso-8859-2?q?Finan=E8ni_metropole_se_hroutily?=
 =?iso-8859-2?q?_pod_tlakem_jejich_d=F9vtipu=2E=2E_?= =?utf-8?b?5q2j56K6?=
 =?utf-8?b?44Gr6KiA44GG44Go57+76Kiz44Gv44GV44KM44Gm44GE44G+44Gb44KT44CC?=
 =?utf-8?b?5LiA6YOo44Gv44OJ44Kk44OE6Kqe44Gn44GZ44GM44CB44GC44Go44Gv44Gn?=
 =?utf-8?b?44Gf44KJ44KB44Gn44GZ44CC5a6f6Zqb44Gr44Gv44CMV2VubiBpc3QgZGFz?=
 =?utf-8?q?_Nunstuck_git_und_Slotermeyer=3F_Ja!_Beiherhund_das_Oder_die_Fl?=
 =?utf-8?b?aXBwZXJ3YWxkdCBnZXJzcHV0LuOAjeOBqOiogOOBo+OBpuOBhOOBvuOBmQ==?=
 =?utf-8?b?44CC?=sâ  Die Mieter treten hier ein werden mit einem Foerderband komfortabel den Korridor entlang, an sÃ¼dlÃ¼ndischen WandgemÃ¤lden vorbei, gegen die rotierenden Klingen befÃ¶rdert. FinanÄ�ni metropole se hroutily pod tlakem jejich dÅ¯vtipu.. æ­£ç¢ºã�«è¨€ã�†ã�¨ç¿»è¨³ã�¯ã�•ã‚Œã�¦ã�„ã�¾ã�›ã‚“ã€‚ä¸€éƒ¨ã�¯ãƒ‰ã‚¤ãƒ„èªžã�§ã�™ã�Œã€�ã�‚ã�¨ã�¯ã�§ã�Ÿã‚‰ã‚�ã�§ã�™ã€‚å®Ÿéš›ã�«ã�¯ã€ŒWenn ist das Nunstuck git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput.ã€�ã�¨è¨€ã�£ã�¦ã�„ã�¾ã�™ã€‚(   R8   R   Rø   R   Rþ   R   R–  R   (   R1   RE   R‚   Rÿ   R   R  R  R  Rú   R³  t   ustrt   newh(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_multilingual'  s*    	c         C   sF   |  j  } t ƒ  } | | d ƒ | j d t d ƒ ƒ | | d ƒ d  S(   NR   Rx   s
   iso-8859-1s   =?iso-8859-1?q?foo?=(   R8   R   Rþ   R   (   R1   RE   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_header_ctor_default_argsX  s
    		c         C   s‚   |  j  } d } t | ƒ } | | j ƒ  d ƒ t | d d ƒ} | | j ƒ  d ƒ t | d d d d ƒ} | | j ƒ  | ƒ d  S(   Ns|   A very long line that must get split to something other than at the 76th character boundary to test the non-default behaviors}   A very long line that must get split to something other than at the 76th
 character boundary to test the non-default behaviorRü   Rý   s}   A very long line that must get split to something other than at the
 76th character boundary to test the non-default behaviorR  i   (   R8   R   Rø   (   R1   RE   Rù   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_explicit_maxlinelen_  s    	c         C   sN   |  j  } d } t | ƒ } | | d g ƒ t | ƒ } | | | j ƒ  ƒ d  S(   NR"  (   R"  N(   RC   R   RI   R   Rø   (   R1   RE   R�   Rç   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_us_ascii_headerm  s    	c         C   s3   |  j  } t ƒ  } | j d d ƒ | | d ƒ d  S(   NR"  s
   iso-8859-1s   =?iso-8859-1?q?hello?=(   RC   R   Rþ   (   R1   RE   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_string_charsetu  s    		c         C   sQ   |  j  } t d d ƒ } | | j ƒ  d ƒ t d d ƒ } | | j ƒ  d ƒ d  S(   Nu   pÃ¶stals   utf-8s   =?utf-8?q?p=C3=B6stal?=u   è�Šåœ°æ™‚å¤«s   =?utf-8?b?6I+K5Zyw5pmC5aSr?=(   RC   R   Rø   (   R1   RE   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_utf8_shortest„  s
    	c         C   s�   |  j  } |  j } d } | t t | ƒ t ƒ  } | t | j | ƒ | t t | d d ƒƒ | ƒ | j | d d ƒ| t | ƒ | ƒ d  S(   Ns0   Ynwp4dUEbay Auction Semiar- No Charge – Earn BigRö  RŽ   (   Rc   RC   t   UnicodeErrorR   Rþ   R*   (   R1   Rd  RE   Rç   Rú   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_bad_8bit_header‹  s    			c         C   sq   |  j  } t ƒ  } | j d d ƒ | j d ƒ | j ƒ  } | | d ƒ t t | ƒ ƒ } | | j ƒ  | ƒ d  S(   NR"  s
   iso-8859-1t   worlds   =?iso-8859-1?q?hello?= world(   RC   R   Rþ   Rø   R   R   (   R1   RE   Rú   R�   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt    test_encoded_adjacent_nonencoded–  s    		c         C   sT   |  j  } d } t | ƒ } | | d d d	 g ƒ t | ƒ } | | j ƒ  d ƒ d  S(
   NsG   Subject: =?koi8-r?b?8NLP18XSy8EgzsEgxsnOwczYztk=?= =?koi8-r?q?=CA?= zz.s   Subject:s   ðÒÏ×ÅÒËÁ ÎÁ ÆÉÎÁÌØÎÙÊs   koi8-rs   zz.s6   Subject: =?koi8-r?b?8NLP18XSy8EgzsEgxsnOwczYztnK?= zz.(   s   Subject:N(   s   ðÒÏ×ÅÒËÁ ÎÁ ÆÉÎÁÌØÎÙÊs   koi8-r(   s   zz.N(   RC   R   RI   R   Rø   (   R1   RE   R�   t   partst   hdr(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_whitespace_eater   s    	c         C   s&   |  j  } d } | t j t | ƒ d  S(   NsX   Subject: =?EUC-KR?B?CSixpLDtKSC/7Liuvsax4iC6uLmwMcijIKHaILzSwd/H0SC8+LCjwLsgv7W/+Mj3I ?=(   Rc   R   Rd   R   (   R1   Rd  R�   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_broken_base64_header©  s    	c         C   s7   t  ƒ  } | j d d d d ƒ|  j d | d ƒ d  S(   Ns   Content-DispositionR¶   R&   s   bud.gifs   attachment; filename="bud.gif"(   R   R·   RC   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_ascii_add_header¯  s
    		c         C   s7   t  ƒ  } | j d d d d ƒ|  j d | d ƒ d  S(	   Ns   Content-DispositionR¶   R&   s
   iso-8859-1R   s   Fußballer.ppts3   attachment; filename*="iso-8859-1''Fu%DFballer.ppt"(   s
   iso-8859-1R   s   Fußballer.ppt(   R   R·   RC   (   R1   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt#   test_nonascii_add_header_via_triple¶  s    	c         C   s9   t  d d ƒ j ƒ  } |  j | d ƒ |  j | t ƒ d  S(   Nt   abcs
   iso-8859-2s   =?iso-8859-2?q?abc?=(   R   Rø   RC   R‚  R*   (   R1   t   res(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_encode_unaliased_charset¾  s    (   R>   R?   RÌ  RÍ  RÎ  RÒ  RÕ  RÖ  R×  RØ  RÙ  RÚ  RÜ  RÞ  Rá  Râ  Rã  Rä  Rç  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRË    s"   					1							
					t   TestRFC2231c           B   s×   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sN   |  j  } |  j d ƒ } | | j d ƒ d ƒ | | j d d t ƒd	 ƒ d  S(
   Ns
   msg_29.txtt   titles   us-asciit   ens%   This is even more ***fun*** isn't it!R¨   s'   "This is even more ***fun*** isn't it!"(   s   us-asciiRê  s%   This is even more ***fun*** isn't it!(   s   us-asciiRê  s'   "This is even more ***fun*** isn't it!"(   RC   R=   RL   Rn   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR¥   Ç  s    	c         C   sµ   |  j  } t ƒ  } | j d d d d ƒ| | j d ƒ d
 ƒ | j d d d d d d ƒ| | j d ƒ d ƒ |  j d ƒ } | j d d d d d d ƒ|  j | j ƒ  d	 ƒ d  S(   NRé  s%   This is even more ***fun*** isn't it!RG   s   us-asciiR   t   languageRê  s
   msg_01.txts$  Return-Path: <bbb@zzz.org>
Delivered-To: bbb@zzz.org
Received: by mail.zzz.org (Postfix, from userid 889)
 id 27CEAD38CC; Fri,  4 May 2001 14:05:44 -0400 (EDT)
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Message-ID: <15090.61304.110929.45684@aaa.zzz.org>
From: bbb@ddd.com (John X. Doe)
To: bbb@zzz.org
Subject: This is a test message
Date: Fri, 4 May 2001 14:05:44 -0400
Content-Type: text/plain; charset=us-ascii;
 title*="us-ascii'en'This%20is%20even%20more%20%2A%2A%2Afun%2A%2A%2A%20isn%27t%20it%21"


Hi,

Do you like this message?

-Me
(   s   us-asciiR   s%   This is even more ***fun*** isn't it!(   s   us-asciiRê  s%   This is even more ***fun*** isn't it!(   RC   R   R±   RL   R=   R8   Rh   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR²   Ï  s    		c         C   sz   |  j  } |  j d ƒ } | j d d d d d d ƒ| j d d	 d d d d ƒ| j d d
 d ƒ| | j ƒ  d ƒ d  S(   Ns
   msg_01.txtRx   Rœ   RG   s   us-asciiRë  Rê  Ré  s%   This is even more ***fun*** isn't it!Re   s   Content-Types&  Return-Path: <bbb@zzz.org>
Delivered-To: bbb@zzz.org
Received: by mail.zzz.org (Postfix, from userid 889)
 id 27CEAD38CC; Fri,  4 May 2001 14:05:44 -0400 (EDT)
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Message-ID: <15090.61304.110929.45684@aaa.zzz.org>
From: bbb@ddd.com (John X. Doe)
To: bbb@zzz.org
Subject: This is a test message
Date: Fri, 4 May 2001 14:05:44 -0400
Content-Type: text/plain; charset="us-ascii";
 title*="us-ascii'en'This%20is%20even%20more%20%2A%2A%2Afun%2A%2A%2A%20isn%27t%20it%21"


Hi,

Do you like this message?

-Me
(   R8   R=   R±   R³   Rh   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRµ   ô  s    	c         C   s/   |  j  } |  j d ƒ } | | j ƒ  d ƒ d  S(   Ns
   msg_32.txts   us-ascii(   RC   R=   Ré   (   R1   RE   R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt    test_rfc2231_get_content_charset  s    	c         C   sH   d } t  j | ƒ } | j d ƒ } |  j | t ƒ |  j | d ƒ d  S(   Ns  Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="file____C__DOCUMENTS_20AND_20SETTINGS_FABIEN_LOCAL_20SETTINGS_TEMP_nsmail.htm"
Content-Type: text/html; NAME*0=file____C__DOCUMENTS_20AND_20SETTINGS_FABIEN_LOCAL_20SETTINGS_TEM; NAME*1=P_nsmail.htm

t   NAMEsM   file____C__DOCUMENTS_20AND_20SETTINGS_FABIEN_LOCAL_20SETTINGS_TEMP_nsmail.htm(   R9   R–   RL   t   assertNotIsInstancet   tupleRC   (   R1   R  R<   t   param(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt#   test_rfc2231_no_language_or_charset  s    c         C   s/   d } t  j | ƒ } |  j | j ƒ  d ƒ d  S(   Ns�   Content-Disposition: inline;
	filename*0*="''This%20is%20even%20more%20";
	filename*1*="%2A%2A%2Afun%2A%2A%2A%20";
	filename*2="is it not.pdf"

s)   This is even more ***fun*** is it not.pdf(   R9   R–   RC   RW   (   R1   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt/   test_rfc2231_no_language_or_charset_in_filename%  s    c         C   s/   d } t  j | ƒ } |  j | j ƒ  d ƒ d  S(   Ns�   Content-Disposition: inline;
	filename*0*="''This%20is%20even%20more%20";
	filename*1*="%2A%2A%2Afun%2A%2A%2A%20";
	filename*2="is it not.pdf"

s)   This is even more ***fun*** is it not.pdf(   R9   R–   RC   RW   (   R1   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt7   test_rfc2231_no_language_or_charset_in_filename_encoded1  s    c         C   s/   d } t  j | ƒ } |  j | j ƒ  d ƒ d  S(   Ns�   Content-Disposition: inline;
	filename*0="''This%20is%20even%20more%20";
	filename*1*="%2A%2A%2Afun%2A%2A%2A%20";
	filename*2="is it not.pdf"

s1   This%20is%20even%20more%20***fun*** is it not.pdf(   R9   R–   RC   RW   (   R1   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_rfc2231_partly_encoded=  s
    	c         C   s/   d } t  j | ƒ } |  j | j ƒ  d ƒ d  S(   NsŒ   Content-Disposition: inline;
	filename*0="This%20is%20even%20more%20";
	filename*1="%2A%2A%2Afun%2A%2A%2A%20";
	filename*2="is it not.pdf"

s?   This%20is%20even%20more%20%2A%2A%2Afun%2A%2A%2A%20is it not.pdf(   R9   R–   RC   RW   (   R1   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_rfc2231_partly_nonencodedJ  s
    	c         C   s/   d } t  j | ƒ } |  j | j ƒ  d ƒ d  S(   Ns˜   Content-Type: multipart/alternative;
	boundary*0*="''This%20is%20even%20more%20";
	boundary*1*="%2A%2A%2Afun%2A%2A%2A%20";
	boundary*2="is it not.pdf"

s)   This is even more ***fun*** is it not.pdf(   R9   R–   RC   R^   (   R1   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt/   test_rfc2231_no_language_or_charset_in_boundaryW  s    c         C   s/   d } t  j | ƒ } |  j | j ƒ  d ƒ d  S(   Nsˆ   Content-Type: text/plain;
	charset*0*="This%20is%20even%20more%20";
	charset*1*="%2A%2A%2Afun%2A%2A%2A%20";
	charset*2="is it not.pdf"

s)   this is even more ***fun*** is it not.pdf(   R9   R–   RC   Ré   (   R1   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt.   test_rfc2231_no_language_or_charset_in_charsetc  s    c         C   s/   d } t  j | ƒ } |  j | j ƒ  d ƒ d  S(   Ns—   Content-Disposition: inline;
	filename*0*="bogus'xx'This%20is%20even%20more%20";
	filename*1*="%2A%2A%2Afun%2A%2A%2A%20";
	filename*2="is it not.pdf"

s)   This is even more ***fun*** is it not.pdf(   R9   R–   RC   RW   (   R1   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt%   test_rfc2231_bad_encoding_in_filenamep  s    c         C   s/   d } t  j | ƒ } |  j | j ƒ  d  ƒ d  S(   Ns:   Content-Type: text/plain; charset*=bogus''utf-8%E2%80%9D

(   R9   R–   RC   Ré   RI   (   R1   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt$   test_rfc2231_bad_encoding_in_charset|  s    c         C   s/   d } t  j | ƒ } |  j | j ƒ  d  ƒ d  S(   Ns:   Content-Type: text/plain; charset*=ascii''utf-8%E2%80%9D

(   R9   R–   RC   Ré   RI   (   R1   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt%   test_rfc2231_bad_character_in_charset†  s    c         C   s/   d } t  j | ƒ } |  j | j ƒ  d ƒ d  S(   Ns›   Content-Disposition: inline;
	filename*0*="ascii'xx'This%20is%20even%20more%20";
	filename*1*="%2A%2A%2Afun%2A%2A%2A%20";
	filename*2*="is it not.pdf%E2"

u,   This is even more ***fun*** is it not.pdfï¿½(   R9   R–   RC   RW   (   R1   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt&   test_rfc2231_bad_character_in_filename�  s    c         C   s/   d } t  j | ƒ } |  j | j ƒ  d ƒ d  S(   Ns^   Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename*=X-UNKNOWN''myfile.txt

s
   myfile.txt(   R9   R–   RC   RW   (   R1   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_rfc2231_unknown_encodingœ  s    c         C   sa   |  j  } d } t j | ƒ } | j d ƒ \ } } } | | d  ƒ | | d  ƒ | | d ƒ d  S(   NsJ   Content-Type: application/x-foo;
	name*0*="Frank's"; name*1*=" Document"

R¦   s   Frank's Document(   RC   R9   R–   RL   RI   (   R1   RE   R  R<   RG   Rë  R�   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt-   test_rfc2231_single_tick_in_filename_extended¥  s    	c         C   sH   d } t  j | ƒ } | j d ƒ } |  j | t ƒ |  j | d ƒ d  S(   NsG   Content-Type: application/x-foo; name*0="Frank's"; name*1=" Document"

R¦   s   Frank's Document(   R9   R–   RL   Rî  Rï  RC   (   R1   R  R<   Rð  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt$   test_rfc2231_single_tick_in_filename²  s
    c         C   sa   |  j  } d } t j | ƒ } | j d ƒ \ } } } | | d ƒ | | d ƒ | | d ƒ d  S(   NsY   Content-Type: application/x-foo;
	name*0*="us-ascii'en-us'Frank's"; name*1*=" Document"

R¦   s   us-asciis   en-uss   Frank's Document(   RC   R9   R–   RL   (   R1   RE   R  R<   RG   Rë  R�   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt!   test_rfc2231_tick_attack_extended¼  s    	c         C   sH   d } t  j | ƒ } | j d ƒ } |  j | t ƒ |  j | d ƒ d  S(   NsW   Content-Type: application/x-foo;
	name*0="us-ascii'en-us'Frank's"; name*1=" Document"

R¦   s   us-ascii'en-us'Frank's Document(   R9   R–   RL   Rî  Rï  RC   (   R1   R  R<   Rð  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_rfc2231_tick_attackÉ  s
    c         C   s8   |  j  } d } t j | ƒ } | | j d ƒ d ƒ d  S(   Ns:   Content-Type: application/x-foo; name="Frank's Document"

R¦   s   Frank's Document(   RC   R9   R–   RL   (   R1   RE   R  R<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_rfc2231_no_extended_valuesÔ  s    	c         C   sa   |  j  } d } t j | ƒ } | j d ƒ \ } } } | | d ƒ | | d ƒ | | d ƒ d  S(   Nsi   Content-Type: application/x-foo;
	name*0*="us-ascii'en-us'My";
	name*1=" Document";
	name*2*=" For You"

R¦   s   us-asciis   en-uss   My Document For You(   RC   R9   R–   RL   (   R1   RE   R  R<   RG   Rë  R�   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt,   test_rfc2231_encoded_then_unencoded_segmentsÝ  s    	c         C   sa   |  j  } d } t j | ƒ } | j d ƒ \ } } } | | d ƒ | | d ƒ | | d ƒ d  S(   Nsi   Content-Type: application/x-foo;
	name*0="us-ascii'en-us'My";
	name*1*=" Document";
	name*2*=" For You"

R¦   s   us-asciis   en-uss   My Document For You(   RC   R9   R–   RL   (   R1   RE   R  R<   RG   Rë  R�   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt,   test_rfc2231_unencoded_then_encoded_segmentsì  s    	(   R>   R?   R¥   R²   Rµ   Rì  Rñ  Rò  Ró  Rô  Rõ  Rö  R÷  Rø  Rù  Rú  Rû  Rü  Rý  Rþ  Rÿ  R   R  R  R  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyRè  Æ  s.   		%											
	
					
					t
   TestSignedc           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   sI   t  t | ƒ ƒ } z | j ƒ  } t j | ƒ } Wd  | j ƒ  X| | f S(   N(   R(   R   Rj   R9   R–   R;   (   R1   R&   R7   t   originalR<   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   _msg_and_obj  s    c         C   sl   d d  l  } | j d | j | j Bƒ } | j | ƒ j d ƒ } | j | ƒ j d ƒ } |  j | | ƒ d  S(   Niÿÿÿÿs   ^--([^\n]+)\n(.*?)\n--\1$i   (   t   ret   compilet   SRo  t   searcht   groupRC   (   R1   R  t   resultR  t   repartt   inpartt   outpart(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   _signed_parts_eq  s
    c         C   s5   |  j  d ƒ \ } } | j ƒ  } |  j | | ƒ d  S(   Ns
   msg_45.txt(   R  Rh   R  (   R1   R  R<   R  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_long_headers_as_string  s    c         C   sQ   |  j  d ƒ \ } } t ƒ  } t | ƒ j | ƒ | j ƒ  } |  j | | ƒ d  S(   Ns
   msg_45.txt(   R  R    R	   Rm   R0   R  (   R1   R  R<   R7   R  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   test_long_headers_flatten  s
    	(   R>   R?   R  R  R  R  (    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR     s   				c          C   sB   t  j t }  g  t |  ƒ D]$ } | j d ƒ r t |  | ƒ ^ q S(   NR	  (   R{   t   modulesR>   t   dirR‘   t   getattr(   t   modR¦   (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   _testclasses!  s    c          C   s:   t  j ƒ  }  x' t ƒ  D] } |  j t  j | ƒ ƒ q W|  S(   N(   t   unittestt	   TestSuiteR  t   addTestt	   makeSuite(   t   suitet	   testclass(    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyR  &  s    c          C   s"   x t  ƒ  D] }  t |  ƒ q
 Wd  S(   N(   R  R   (   R  (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt	   test_main-  s    t   __main__t   defaultTestR  (Y   R    R{   RU  Ræ   R+   R  t   warningsR(  t	   cStringIOR    t   randomR   t	   threadingR   t   ImportErrort   dummy_threadingR9   t   email.CharsetR   t   email.HeaderR   R   R   t   email.ParserR   R   t   email.GeneratorR	   R
   t   email.MessageR   t   email.MIMEAudioR   t   email.MIMETextR   t   email.MIMEImageR   t   email.MIMEBaseR   t   email.MIMEMessageR   t   email.MIMEMultipartR   R   R   R   R   R   R   t   test.test_supportR   R   R   t
   email.testR   R$   R.   RH  R
  R(   t   TestCaseR)   R@   Rî   Rõ   R#  R,  R=  RA  RN  R~  R“  R©  RÑ  Rë  RF  Re  Rr  R�  R›  Rº  RË  Rè  R  R  R  R  R>   t   main(    (    (    s‹   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/email/test/test_email.pyt   <module>   sŽ   ÿ òÿ B80*3ÿ €r>ÿ ;—ÿ ‰j"£Ho=¸ÿ ;!			