%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/email/test/ |
Current File : //usr/local/lib/python2.7/email/test/test_email_torture.pyo |
ó Oêáac @ s1 d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z m Z d d l Z d d l m Z d d l m Z d „ Z y e d ƒ Wn e k rÆ e ‚ n Xd e f d „ ƒ YZ d e f d „ ƒ YZ d „ Z d „ Z d „ Z e d k r-e j d d ƒ n d S( iÿÿÿÿN( t StringIO( t ListType( t TestEmailBase( t TestSkippedt run_unittest( t __file__( t _structurec C sM d d l m } m } m } | | | t ƒ t j d | ƒ ƒ } t | d ƒ S( Niÿÿÿÿ( t joint dirnamet abspatht moredatat r( t os.pathR R R t testfilet ost pardirt open( t filenameR R R t path( ( s9 /usr/local/lib/python2.7/email/test/test_email_torture.pyt openfile s $s crispin-torture.txtt TortureBasec B s e Z d „ Z RS( c C s1 t | ƒ } z t j | ƒ } Wd | j ƒ X| S( N( R t emailt message_from_filet close( t selfR t fpt msg( ( s9 /usr/local/lib/python2.7/email/test/test_email_torture.pyt _msgobj$ s ( t __name__t __module__R ( ( ( s9 /usr/local/lib/python2.7/email/test/test_email_torture.pyR # s t TestCrispinTorturec B s e Z d „ Z RS( c C s£ | j } | j } | j d ƒ } | j ƒ } | t | ƒ t ƒ | t | ƒ d ƒ | | j d ƒ | | j d ƒ t ƒ } t | d | ƒ| | j ƒ d ƒ d S( Ns crispin-torture.txti s R s: multipart/mixed text/plain message/rfc822 multipart/alternative text/plain multipart/mixed text/richtext application/andrew-inset message/rfc822 audio/basic audio/basic image/pbm message/rfc822 multipart/mixed multipart/mixed text/plain audio/x-sun multipart/mixed image/gif image/gif application/x-be2 application/atomicmail audio/x-sun message/rfc822 multipart/mixed text/plain image/pgm text/plain message/rfc822 multipart/mixed text/plain image/pbm message/rfc822 application/postscript image/gif message/rfc822 multipart/mixed audio/basic audio/basic message/rfc822 multipart/mixed application/postscript text/plain message/rfc822 multipart/mixed text/plain multipart/parallel image/gif audio/basic application/atomicmail message/rfc822 audio/x-sun ( t assertEqualt ndiffAssertEqualR t get_payloadt typeR t lent preamblet Nonet epilogueR R t getvalue( R t eqt neqR t payloadR ( ( s9 /usr/local/lib/python2.7/email/test/test_email_torture.pyt test_mondo_message0 s 5( R R R+ ( ( ( s9 /usr/local/lib/python2.7/email/test/test_email_torture.pyR . s c C sB t j t } g t | ƒ D]$ } | j d ƒ r t | | ƒ ^ q S( Nt Test( t syst modulesR t dirt startswitht getattr( t modt name( ( s9 /usr/local/lib/python2.7/email/test/test_email_torture.pyt _testclassesu s c C s: t j ƒ } x' t ƒ D] } | j t j | ƒ ƒ q W| S( N( t unittestt TestSuiteR4 t addTestt makeSuite( t suitet testclass( ( s9 /usr/local/lib/python2.7/email/test/test_email_torture.pyR9 z s c C s"