Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_binascii.pyc |
³ò h”Rc @ sl d Z d d k l Z d d k Z d 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.iÿÿÿÿ( t test_supportNt BinASCIITestc B s‹ e 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( s. 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 assert_t issubclasst binasciit Errort Exceptiont Incomplete( t self( ( s. /usr/local/lib/python2.5/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( s hexlifyR ( t extendR t callablet getattrR t assertRaisest TypeError( R t funcst suffixt prefixest prefixt name( ( s. /usr/local/lib/python2.5/test/test_binascii.pyt 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 ranget lent dataR t b2a_base64t appendt a2b_base64t assertEqual( R t MAX_BASE64t linest it bt at rest line( ( s. /usr/local/lib/python2.5/test/test_binascii.pyt test_base64valid# s c s$ d } g } xS t d t | i ƒ | ƒ D]6 } | i | | | !} t i | ƒ } | i | ƒ q( Wd ‰ d } x; t d ƒ D]- } t | ƒ } | | j o ˆ | 7‰ q{ q{ W‡ f d † } d } x0 t | | ƒ D] } t i | ƒ } | | 7} qÑ W| i | | i ƒ | i t i ˆ ƒ d ƒ d S( Ni9 i R s@ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/i c s™ ˆ } t | ƒ t | ƒ } d } xh | o` | oY t | ƒ t | ƒ | j o | d | d } } n | d | d } } | | 7} q% W| | | S( NR i i ( R"