mς
­fIc           @   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   (    (    t3   /mit/python/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&   s    (   t   __name__t
   __module__R   R   R   R   (    (    (    R
   R       s   			c           C   s   t  i i t  d  S(   N(   t   testt   test_supportt   run_unittestR    (    (    (    R
   t	   test_main)   s    t   __main__(	   t   __doc__t   test.test_supportR   t   unittestR	   t   TestCaseR    R   R   (   R#   R    R   R   R	   (    (    R
   t   ?
   s   	