Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
lib
/
python2.4
/
email
/
test
/
Upload File :
New :
File
Dir
//proc/self/root/usr/lib/python2.4/email/test/test_email_torture.pyc
mς =5Dc @ s d k Z d k Z d k Z d k l Z d k l Z d k l Z d k l Z d k Z d k l Z d k l Z d Z y e d Wn e j o e n Xd e f d YZ d e f d YZ d Z d Z d Z e d j o e i d d n d S( N( s StringIO( s ListType( s TestEmailBase( s TestSkipped( s __file__( s _structurec C sJ d k l } l } l } | | | t t i d | } t | d S( N( s joins dirnames abspatht moredatat r( t os.patht joint dirnamet abspatht testfilet ost pardirt filenamet patht open( R R R R R ( ( t3 /usr/lib/python2.4/email/test/test_email_torture.pyt openfile s $s crispin-torture.txtt TortureBasec B s t Z d Z RS( Nc C s1 t | } z t i | } Wd | i X| S( N( R R t fpt emailt message_from_filet msgt close( t selfR R R ( ( R t _msgobj$ s ( t __name__t __module__R ( ( ( R R # s t TestCrispinTorturec B s t Z d Z RS( Nc C s£ | i } | i } | i d } | i } | t | t | t | d | | i d | | i d t } t | d | | | i 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 ( R t assertEqualt eqt ndiffAssertEqualt neqR R t get_payloadt payloadt typet ListTypet lent preamblet Nonet epiloguet StringIOR t _structuret getvalue( R R R R R R ( ( R t test_mondo_message0 s 5( R R R( ( ( ( R R . s c C sO t i t } g } t | D]* } | i d o | t | | q q ~ S( Nt Test( t syst modulesR t modt _[1]t dirt namet startswitht getattr( R- R/ R, ( ( R t _testclassesu s c C s: t i } x' t D] } | i t i | q W| S( N( t unittestt TestSuitet suiteR2 t testclasst addTestt makeSuite( R5 R6 ( ( R R5 z s c C s% x t D] } t i | q Wd S( N( R2 R6 t test_supportt run_unittest( R6 ( ( R t test_main s t __main__t defaultTestR5 ( R* R R3 t cStringIOR% t typesR t email.test.test_emailt TestEmailBaset test.test_supportt TestSkippedR t __file__R t email.IteratorsR&