mς
­fIc           @   s   d  k  Z  d k l Z d  k Z d  k Z d  k Z d  k Z e i e i d   Z d e  i	 f d     YZ
 d   Z e d j o e   n d  S(   N(   s   test_supportsb   Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Foo!
t   MimeToolsTestc           B   s#   t  Z d   Z d   Z d   Z RS(   Nc         C   s½   t  i d t  i d } x d d d d d d d	 d
 g D]~ } t i |  } t i   } t i	 | | |  t i | i
    } t i   } t i | | |  |  i | i
   |  q7 Wd  S(   Nt   =s   
t   7bitt   8bitt   base64s   quoted-printablet   uuencodes
   x-uuencodet   uues   x-uue(   t   stringt   ascii_letterst   digitst   startt   enct   StringIOt   it   ot	   mimetoolst   encodet   getvaluet   decodet   selft   assertEqual(   R   R   R   R   R
   (    (    t0   /mit/python/lib/python2.4/test/test_mimetools.pyt   test_decodeencode   s     c         C   sY   t  i d g  } x@ t d  D]2 } t i   } |  i	 | | j  | i
 |  q Wd  S(   Nt    id   (   t   setst   Sett   st   xrangeR   R   t   choose_boundaryt   nbR   t   assert_t   add(   R   R   R   R   (    (    R   t   test_boundary   s     c         C   sχ   t  i t i t   } |  i | i   d  |  i | i   d  |  i | i	   d  |  i | i
   d d g  |  i | i   d d g  |  i | i d  d  |  i | i d  d	  |  i | i d
  d   |  i | i   d  d  S(   Ns
   text/plaint   textt   plains   charset=iso-8859-1s   format=flowedt   charsett   formats
   iso-8859-1t   flowedt   spamR   (   R   t   MessageR   t   msgtext1t   msgR   R   t   gettypet   getmaintypet
   getsubtypet   getplistt   getparamnamest   getparamt   Nonet   getencoding(   R   R)   (    (    R   t   test_message"   s    (   t   __name__t
   __module__R   R    R2   (    (    (    R   R       s   		c           C   s   t  i t  d  S(   N(   t   test_supportt   run_unittestR    (    (    (    R   t	   test_main.   s    t   __main__(   t   unittestt   testR5   R   R   R   R   R'   R(   t   TestCaseR    R7   R3   (	   R5   R   R   R   R9   R(   R7   R   R    (    (    R   t   ?   s   	$!	