|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/proc/self/root/usr/lib/python2.4/test/ |
Upload File : |
mò Ð=Ec @ sc d Z d k l Z d k Z d k Z d e i f d „ ƒ YZ d „ Z e d j o e ƒ n d S( s Test the binascii C module.( s test_supportNt BinASCIITestc B s‹ t Z d Z e d i e e e d ƒ ƒ ƒ 7Z e d 7Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Ns. The quick brown fox jumps over the lazy dog. t i s Hello world. c C s6 | i t t i t ƒ ƒ | i t t i t ƒ ƒ d S( N( t selft assert_t issubclasst binasciit Errort Exceptiont Incomplete( R ( ( t( /usr/lib/python2.4/test/test_binascii.pyt test_exceptions s c C sä g } x‘ d D]‰ } d d g } | d j o | i d d d g ƒ n xM | D]E } | | } | i t t t | ƒ ƒ ƒ | i t t t | ƒ ƒ qM Wq WxC d D]; } | i t t t | ƒ ƒ ƒ | i t t t | ƒ ƒ q¡ Wd S( Nt base64t hqxt uut hext a2b_t b2a_t crc_t rlecode_t rledecode_t hexlifyt unhexlify( s base64R s uus hex( R R ( t funcst suffixt prefixest extendt prefixt nameR R t callablet getattrR t assertRaisest TypeError( R R R R R R ( ( R t test_functions s ! c C s© d } g } xS t d t | i ƒ | ƒ D]6 } | i | | | !} t i | ƒ } | i | ƒ q( Wd } x' | D] } t i | ƒ } | | } qo W| i | | i ƒ d S( Ni9 i R ( t MAX_BASE64t linest ranget lenR t datat it bR t b2a_base64t at appendt rest linet a2b_base64t assertEqual( R R) R' R&