ó
wŪjc           @   s   d  d l  m Z d  d l Z d  d l Z d  d l Z d e f d     YZ d e j	 f d     YZ
 d   Z e d k r e   n  d S(	   i’’’’(   t   test_supportNt
   CompleteMec           B   s   e  Z d  Z d Z RS(   s6    Trivial class used in testing rlcompleter.Completer. i   (   t   __name__t
   __module__t   __doc__t   spam(    (    (    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_rlcompleter.pyR      s   t   TestRlcompleterc           B   s5   e  Z d    Z d   Z d   Z d   Z d   Z RS(   c         C   sM   t  j   |  _ t  j t d t d t d t   |  _ |  j j d d  d  S(   NR   t   eggR   t    i    (	   t   rlcompletert	   Completert   stdcompletert   dictt   intt   strR   t	   completert   complete(   t   self(    (    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_rlcompleter.pyt   setUp   s
    c         C   s   d t  f d     Y} d t f d     Y} |  j |  j j  |  j |  j j  |  j t j |    j  |  j	 t
 t j | d   d  S(   Nt   Ac           B   s   e  Z RS(    (   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_rlcompleter.pyR      s   t   Bc           B   s   e  Z RS(    (   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_rlcompleter.pyR      s   i   (   i   (   R   t   listt
   assertTrueR   t   use_main_nst   assertFalseR   R	   R
   t   assertRaisest	   TypeError(   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_rlcompleter.pyt   test_namespace   s    c         C   s  |  j  t |  j j d   g  t t  D] } | j d  r( | d ^ q(  |  j  t |  j j d   g  t t  D] } | j d  rv | d ^ qv  |  j  |  j j d  g   |  j  |  j j d  d g  |  j  |  j j d  d g  |  j  |  j j d  d g  d  S(	   Nt   dit   (t   stt   akaksajadhakt	   CompleteMs   CompleteMe(t   egs   egg((   t   assertEqualt   sortedR   t   global_matchest   dirt   builtinst
   startswithR   (   R   t   x(    (    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_rlcompleter.pyt   test_global_matches    s    33

c         C   s  |  j  |  j j d  g  t t  D]$ } | j d  r" d j |  ^ q"  |  j  |  j j d  g   |  j  |  j j d  d g  |  j  |  j j d  g   t t _	 |  j  |  j j d  d	 g  |  j  |  j j d
  g  t t  D]$ } | j d  rī d j |  ^ qī  d  S(   Ns   str.st   ss   str.{}(s   tuple.foospameggs   CompleteMe.sps   CompleteMe.spams   Completeme.eggs   CompleteMe.me.me.sps   CompleteMe.me.me.spams   egg.ss   egg.{}((
   R"   R   t   attr_matchesR%   R   R'   t   formatR   R   t   me(   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_rlcompleter.pyt   test_attr_matches1   s    %
	
c         C   sg   d d d     Y} |   } t  j t d |   } |  j | j d d  d  |  j | j d  d  S(	   Nt   Fooc           B   s   e  Z d  Z e d    Z RS(   i    c         S   s   |  j  d 7_  d  S(   Ni   (   t   callst   None(   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_rlcompleter.pyt   barH   s    (   R   R   R0   t   propertyR2   (    (    (    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_rlcompleter.pyR/   F   s   t   fs   f.bi    s   f.bari   (    (   R	   R
   R   R"   R   R0   (   R   R/   R4   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_rlcompleter.pyt   test_excessive_getattrD   s
    	(   R   R   R   R   R)   R.   R5   (    (    (    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_rlcompleter.pyR      s
   					c          C   s   t  j t  d   }  d  S(   Nc         S   sK  i d  d 6d  d 6d   d 6d  d 6d   d 6} t j |  } |  j | j d d  d  |  j | j d d	   |  j | j d d  d  |  j | j d d	   |  j | j d d  d  |  j | j d d	   |  j | j d d  d  |  j | j d d	   |  j | j d d  d
  |  j | j d d	   d  S(   Nt   Falset   assertc           S   s   d  S(   N(   R1   (    (    (    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_rlcompleter.pyt   <lambda>X   R   t   tryt
   memoryviewc           S   s   d  S(   N(   R1   (    (    (    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_rlcompleter.pyR8   Z   R   t   Ellipsisi    i   s	   Ellipsis((   R1   R	   R
   R"   R   t   assertIsNone(   R   t	   namespaceR   (    (    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_rlcompleter.pyt   test_duplicate_globalsT   s"    
(   t   supportt   run_unittestR   (   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_rlcompleter.pyt	   test_mainQ   s    t   __main__(   t   testR    R?   t   unittestt   __builtin__R&   R	   t   objectR   t   TestCaseR   RA   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_rlcompleter.pyt   <module>   s   F	