ó
­«Y]c           @   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$   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$   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$   lib/python2.7/test/test_multifile.pyt   <module>   s   "			