ó
wŰjc           @   sx   d  d l  m Z e j d d e Z e j d d e Z d  d l Z d Z d   Z d   Z	 e
 d	 k rt e	   n  d S(
   i˙˙˙˙(   t   test_supportt	   mimetoolst
   deprecatedt	   multifileNsL  Mime-Version: 1.0
Content-Type: multipart/mixed;
        boundary="=====================_590453667==_"
X-OriginalArrivalTime: 05 Feb 2002 03:43:23.0310 (UTC) FILETIME=[42D88CE0:01C1ADF7]

--=====================_590453667==_
Content-Type: multipart/alternative;
        boundary="=====================_590453677==_.ALT"

--=====================_590453677==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

test A
--=====================_590453677==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<b>test B</font></b></html>

--=====================_590453677==_.ALT--

--=====================_590453667==_
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="att.txt"

Attached Content.
Attached Content.
Attached Content.
Attached Content.

--=====================_590453667==_--

c         C   s   t  j |   } | j   d k rq | j d  } t d 7a |  j |  x |  j   rc t |   qJ W|  j   n |  j	   } t
 t |  7a
 d  S(   Nt	   multipartt   boundaryi   (   R   t   Messaget   getmaintypet   getparamt
   boundariest   pusht   nextt
   getMIMEMsgt   popt	   readlinest	   linecountt   len(   t   mft   msgR   t   lines(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multifile.pyR   (   s    
c          C   sV   d a  d a t j t  }  t t j |    t  d k s@ t  t d k sR t  d  S(   Ni    i   i	   (	   R	   R   t	   cStringIOt   StringIOR   R   R   t	   MultiFilet   AssertionError(   t   f(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multifile.pyt	   test_main9   s    t   __main__(   t   testR    t   import_modulet   TrueR   R   R   R   R   R   t   __name__(    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multifile.pyt   <module>   s   "			