%PDF- %PDF-
Direktori : /opt/plesk/python/2.7/lib64/python2.7/test/ |
Current File : //opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyc |
� 5}�ac @ s� d d l m Z m Z d d l Z d d d � � YZ d e f d � � YZ d e f d � � YZ d e j f d � � YZ d � Z e d k r� e � n d S( i����( t have_unicodet run_unittestNt base_setc B s e Z d � Z RS( c C s | | _ d S( N( t el( t selfR ( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyt __init__ s ( t __name__t __module__R ( ( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyR s t setc B s e Z d � Z RS( c C s | j | k S( N( R ( R R ( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyt __contains__ s ( R R R ( ( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyR s t seqc B s e Z d � Z RS( c C s | j g | S( N( R ( R t n( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyt __getitem__ s ( R R R ( ( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyR s t TestContainsc B s, e Z d � Z e r! d � Z n d � Z RS( c s� t d � � t d � } t d � } | j d | � | j d | � | j d | � | j d | � | j t � f d � � | j t � f d � � | j d d � | j d d � | j d d � | j d d � | j t d � � d S( Ni i c s d � k S( Ni ( ( ( t a( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyt <lambda> t c s d � k S( Ni ( ( ( R ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyR R t ct abct dR c S s d d k S( NR ( t None( ( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyR % R ( R R R t assertInt assertNotInt assertRaisest TypeError( R t bR ( ( R s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyt test_common_tests s c C s7 | j d t d � � | j d t d � � | j d t d � � | j t d � d � | j t d � t d � � | j d t d � � | j t d � d � | j t d � t d � � | j t d � � | j t d � t d � � | j t d � t d � � | j t d � d � | j t d � d � d S( NR R R R c S s d t d � k S( NR ( R t unicode( ( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyR 3 R ( R R R R R ( R ( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyt test_char_in_unicode( s c C s t d � } x | D] } | j | | � q W| j d | � | j | | � t | � } x | D] } | j | | � q` W| j d | � | j | | � d d d � � Y} | j | � | j � d d d � � Y} y | j | � | � Wn t k r n Xd S( Ni i t Deviant1c B s# e Z d Z e d � Z d � Z RS( s� Behaves strangely when compared This class is designed to make sure that the contains code works when the list is modified during the check. i c S sC | d k r? | j j d � | j j d � | j j d � n d S( Ni i i i ( t aListt remove( R t other( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyt __cmp__R s ( R R t __doc__t rangeR R! ( ( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyR K s t Deviant2c B s e Z d Z d � Z RS( s� Behaves strangely when compared This class raises an exception during comparison. That in turn causes the comparison to fail with a TypeError. c S s | d k r t d � n d S( Ni t gotcha( t RuntimeError( R R ( ( s; /opt/plesk/python/2.7/lib64/python2.7/test/test_contains.pyR! a s ( R R R"