%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_mimetools.pyo |
ó Nêáac @ 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/ /usr/local/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/ /usr/local/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/ /usr/local/lib/python2.7/test/test_mimetools.pyt test_message% s ( t __name__t __module__R R R2 ( ( ( s/ /usr/local/lib/python2.7/test/test_mimetools.pyR s c C s t j t ƒ d S( N( R t run_unittestR ( ( ( s/ /usr/local/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/ /usr/local/lib/python2.7/test/test_mimetools.pyt <module> s !