Current File : //opt/imh-python/lib/python2.7/test/test_charmapcodec.pyc |
�
��Wc @ s� d Z d d l Z d d l Z d d l Z d � Z e j e � d Z d e j f d � � YZ d � Z
e d k r~ 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.
i����Nc C s0 | d k r, d d l m } t | j � � Sd S( Nt testcodeci����( R ( t testR t tuplet getregentryt None( t encodingR ( ( so /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_charmapcodec.pyt codec_search_function s R t CharmapCodecTestc B s, e Z d � Z d � Z d � Z d � Z RS( c C s� | j t d t � d � | j t d t � d � | j t d t � d � | j t d t � d � | j t d t � d
� d S( Nt abcu abct xdefu abcdeft defxu defabct dxfu dabcft dxfxu dabcfabc( t assertEqualt unicodet codecname( t self( ( so /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_charmapcodec.pyt test_constructorx s
c C s� | j d j t � d � | j d j t � d � | j d j t � d � | j d j t � d � | j d j t � d
� d S( Nu abcR u xdeft abcdefu defxt defabcu dxft dabcfu dxfxt dabcfabc( R
t encodeR ( R ( ( so /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_charmapcodec.pyt test_encodex$ s
c C sh | j t d t � d � | j t d t � d � | j t d t � d � | j t d t � d � d S( Nt ydefu deft defyt dyfu dft dyfy( R
R R ( R ( ( so /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_charmapcodec.pyt test_constructory+ s c C s | j t t d t � d S( Ns abc( t assertRaisest UnicodeErrorR R ( R ( ( so /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_charmapcodec.pyt test_maptoundefined1 s ( t __name__t
__module__R R R R ( ( ( so /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_charmapcodec.pyR s c C s t j j t � d S( N( R t test_supportt run_unittestR ( ( ( so /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_charmapcodec.pyt test_main4 s t __main__( t __doc__t test.test_supportR t unittestt codecsR t registerR t TestCaseR R$ R ( ( ( so /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_charmapcodec.pyt <module>
s