|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21573/root/usr/lib/python2.4/test/ |
Upload File : |
mò
‚=5Dc @ s\ d Z d k Z d k Z d Z d e i f d „ ƒ YZ d „ Z e d j o e ƒ n d S( sá Python character mapping codec test
This uses the test codec in testcodec.py and thus also tests the
encodings package lookup scheme.
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright 2000 Guido van Rossum.
Ns test.testcodect CharmapCodecTestc B s, t Z d „ Z d „ Z d „ Z d „ Z RS( Nc C s | i t d t ƒ d ƒ | i t d t ƒ d ƒ | i t d t ƒ d ƒ | i t d t ƒ d ƒ | i t d t ƒ d
ƒ d S( Nt abcu abct xdefu abcdeft defxu defabct dxfu dabcft dxfxu dabcfabc( t selft assertEqualst unicodet codecname( R ( ( t, /usr/lib/python2.4/test/test_charmapcodec.pyt test_constructorx s
c C s | i d i t ƒ d ƒ | i d i t ƒ d ƒ | i d i t ƒ d ƒ | i d i t ƒ d ƒ | i d i t ƒ d
ƒ d S( Nu abcR u xdeft abcdefu defxt defabcu dxft dabcfu dxfxt dabcfabc( R R t encodeR ( R ( ( R
t test_encodex s
c C sh | i t d t ƒ d ƒ | i t d t ƒ d ƒ | i t d t ƒ d ƒ | i t d t ƒ d ƒ d S( Nt ydefu deft defyt dyfu dft dyfy( R R R R ( R ( ( R
t test_constructory s c C s | i t t d t ƒ d S( Ns abc( R t assertRaisest UnicodeErrorR R ( R ( ( R
t test_maptoundefined&