ó
ŠwÛjc           @   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ˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyt   __init__   s    (   t   __name__t
   __module__R   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/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ˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyt   __contains__
   s    (   R   R   R	   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/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ˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyt   __getitem__   s    (   R   R   R   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/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ˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyt   <lambda>   t    c              s
   d ˆ  k S(   Ni   (    (    (   R   (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyR      R   t   ct   abct   dR   c           S   s
   d  d k S(   NR   (   t   None(    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyR   %   R   (   R   R   R
   t   assertInt   assertNotInt   assertRaisest	   TypeError(   R   t   bR   (    (   R   sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/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ˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyR   3   R   (   R   R   R   R   R   (   R   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/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ˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyt   __cmp__R   s
    (   R   R   t   __doc__t   rangeR   R!   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/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ˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyR!   a   s    (   R   R   R"   R!   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyR$   [   s   (    (    (   R#   R   R   t   tupleR   R   (   R   R   t   iR   R$   (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyt   test_builtin_sequence_types=   s"    
(   R   R   R   R    R   R)   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyR      s   	c           C   s   t  t ƒ d  S(   N(   R   R   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyt	   test_maink   s    t   __main__(    (   t   test.test_supportR    R   t   unittestR   R   R
   t   TestCaseR   R*   R   (    (    (    sˆ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_contains.pyt   <module>   s   Y	