Current File : //opt/imh-python/lib/python2.7/test/test_uu.pyo |
�
��Wc @ s� d Z d d l Z d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d Z d Z d e j
d d � d Z d
e j f d � � YZ
d e j f d
� � YZ d e j f d � � YZ d � Z e d k r� e � n d S( s%
Tests for uu module.
Nick Mathewson
i����N( t test_supports5 The smooth-scaled python crept over the sleeping dog
sK M5&AE('-M;V]T:"US8V%L960@<'ET:&]N(&-R97!T(&]V97(@=&AE('-L965P
(:6YG(&1O9PH s begin %03o %s
t %s %%s
end
t UUTestc B s5 e Z d � Z d � Z d � Z d � Z d � Z RS( c C s� t j t � } t j � } t j | | d � | j | j � t d � t j t � } t j � } t j | | d d � | j | j � t d � d S( Nt t1i� i� ( i� R ( i� R ( t cStringIOt StringIOt plaintextt uut encodet assertEqualt getvaluet encodedtextwrapped( t selft inpt out( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_uu.pyt test_encode s c C s� t j t d � } t j � } t j | | � | j | j � t � t j d d t d � } t j � } t j | | � | j | j � t � d S( Ni� R s( UUencoded files may contain many lines,
s% even some that have 'begin' in them.
( i� s t1( i� s t1( R R R R t decodeR R
R ( R R
R ( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_uu.pyt test_decode s c C ss t j d t � } t j � } y! t j | | � | j d � Wn, t j k
rn } | j t | � d � n Xd S( Ns
begin 644 t1
s No exception raiseds Truncated input file( R R t encodedtextR R t failt ErrorR t str( R R
R t e( ( se /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_uu.pyt test_truncatedinput. s c C so t j d � } t j � } y! t j | | � | j d � Wn, t j k
rj } | j t | � d � n Xd S( Nt s No exception raiseds'