%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_contains.pyc |
ó Nêá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. /usr/local/lib/python2.7/test/test_contains.pyt __init__ s ( t __name__t __module__R ( ( ( s. /usr/local/lib/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. /usr/local/lib/python2.7/test/test_contains.pyt __contains__ s ( R R R ( ( ( s. /usr/local/lib/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. /usr/local/lib/python2.7/test/test_contains.pyt __getitem__ s ( R R R ( ( ( s. /usr/local/lib/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. /usr/local/lib/python2.7/test/test_contains.pyt <lambda> t c s d ˆ k S( Ni ( ( ( R ( s. /usr/local/lib/python2.7/test/test_contains.pyR R t ct abct dR c S s d d k S( NR ( t None( ( ( s. /usr/local/lib/python2.7/test/test_contains.pyR % R ( R R R t assertInt assertNotInt assertRaisest TypeError( R t bR ( ( R s. /usr/local/lib/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. /usr/local/lib/python2.7/test/test_contains.pyR 3 R ( R R R R R ( R ( ( s. /usr/local/lib/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. /usr/local/lib/python2.7/test/test_contains.pyt __cmp__R s ( R R t __doc__t rangeR R! ( ( ( s. /usr/local/lib/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. /usr/local/lib/python2.7/test/test_contains.pyR! a s ( R R R"