ó
wŰjc           @   s   d  d l  Z  d  d l m Z d  d l Z d  d l Z e j d d e Z e j e j d   Z	 d e  j
 f d     YZ d   Z e d	 k r e   n  d S(
   i˙˙˙˙N(   t   test_supportt	   mimetoolst
   deprecatedsb   Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Foo!
t   MimeToolsTestc           B   s#   e  Z d    Z d   Z d   Z RS(   c         C   s˝   t  j d t  j d } x d d d d d d d	 d
 g D]~ } t j |  } t j   } t j | | |  t j | j    } t j   } t j | | |  |  j | j   |  q7 Wd  S(   Nt   =s   
t   7bitt   8bitt   base64s   quoted-printablet   uuencodes
   x-uuencodet   uues   x-uue(	   t   stringt   ascii_letterst   digitst   StringIOR   t   encodet   getvaluet   decodet   assertEqual(   t   selft   startt   enct   it   o(    (    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_mimetools.pyt   test_decodeencode   s    c         C   sS   t  d g  } x= t d  D]/ } t j   } |  j | |  | j |  q Wd  S(   Nt    id   (   t   sett   xrangeR   t   choose_boundaryt   assertNotInt   add(   R   t   sR   t   nb(    (    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_mimetools.pyt   test_boundary   s
    c         C   s÷   t  j t j t   } |  j | j   d  |  j | j   d  |  j | j   d  |  j | j   d d g  |  j | j	   d d g  |  j | j
 d  d  |  j | j
 d  d	  |  j | j
 d
  d   |  j | j   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   msgtext1R   t   gettypet   getmaintypet
   getsubtypet   getplistt   getparamnamest   getparamt   Nonet   getencoding(   R   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/test/test_mimetools.pyt   test_message%   s    (   t   __name__t
   __module__R   R    R2   (    (    (    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_mimetools.pyR      s   		c           C   s   t  j t  d  S(   N(   R    t   run_unittestR   (    (    (    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_mimetools.pyt	   test_main1   s    t   __main__(   t   unittestt   testR    R
   R   t   import_modulet   TrueR   R'   R(   t   TestCaseR   R6   R3   (    (    (    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_mimetools.pyt   <module>   s   !	