Current File : //home/strato/chroot/opt/RZpython2/lib/python2.7/email/test/test_email_torture.pyc |
�
��#ec @ 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( ( s= /opt/RZpython2/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( ( s= /opt/RZpython2/lib/python2.7/email/test/test_email_torture.pyt _msgobj$ s
( t __name__t
__module__R ( ( ( s= /opt/RZpython2/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 ( ( s= /opt/RZpython2/lib/python2.7/email/test/test_email_torture.pyt test_mondo_message0 s 5( R R R+ ( ( ( s= /opt/RZpython2/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( ( s= /opt/RZpython2/lib/python2.7/email/test/test_email_torture.pyt _testclassesu s
c C s: t j � } x'