ó
Š]c           @   sí   d  d l  Z  d  d l j Z e j ƒ  Z d  d l Z d  d l Z d  d l Z d Z d e	 f d „  ƒ  YZ
 e
 ƒ  Z e j Z d e  j f d „  ƒ  YZ d e  j f d „  ƒ  YZ d	 e  j f d
 „  ƒ  YZ e d k ré e  j d d d e ƒ n  d S(   iÿÿÿÿNt    t   TCc           B   sË   e  Z d  Z d Z d d „ Z d e _ d „  Z d e _ d d „ Z d e _ d „  Z d	 e _ d
 „  Z	 d e	 _ d d „ Z
 d e
 _ d „  Z d e _ d „  Z d e _ e d „  ƒ Z e d „  ƒ Z RS(   t   docs   (ai=None, *args)c         G   s   d S(   R   N(    (   t   selft   ait   b(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   __init__   R    s   (self, ai=None, *args)c         C   s   d S(   R   N(    (   R   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   t1   R    s   (self)c         C   s   d S(   R   N(    (   R   R   R   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   t2   R    s   (self, ai, b=None)c         G   s   d S(   R   N(    (   R   R   t   args(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   t3   R    s   (self, ai, *args)c         G   s   d S(   R   N(    (   R   R	   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   t4   R    s   (self, *args)c         O   s   d S(   R   N(    (   R   R   R   R	   t   kw(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   t5   R    s#   (self, ai, b=None, *args, **kwargs)c         C   s   d S(   R   N(    (   t   noR   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   t6   R    s
   (no, self)c         C   s   d S(   R   N(    (   R   t   ci(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   __call__   R    s
   (self, ci)c         C   s   d S(   R   N(    (   t   clst   a(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   cm   R    c         C   s   d S(   R   N(    (   R   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   sm!   R    N(   t   __name__t
   __module__t   __doc__t   tipt   NoneR   R   R   R
   R   R   R   R   t   classmethodR   t   staticmethodR   (    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR      s(   													t   Get_signatureTestc           B   sk   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z RS(   c            sØ   d t  f d „  ƒ  Y} d d d „  ƒ  Y} ‡  f d †  } | j d  k	 r^ | | d | j ƒ n  | t  j d ƒ | t  j d ƒ d	 } | t  j | ƒ | g  j | ƒ | | j | ƒ | t j d
 ƒ | | ƒ  t ƒ d  S(   Nt   Listc           B   s   e  Z d  Z RS(   s
   List() doc(   R   R   R   (    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR   3   s    t   SBc           B   s   e  Z d  Z RS(   N(   R   R   R   R   (    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR   5   s    c            s   ˆ  j  t |  ƒ | ƒ d  S(   N(   t   assertEqualt	   signature(   t   objt   out(   R   (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   gtest7   s    s   ()
s=   T.__new__(S, ...) -> a new object with type S, a subtype of Ts>   x.__init__(...) initializes x; see help(type(x)) for signatures(   L.append(object) -- append object to ends,   ()
instancemethod(function, instance, class)(    (	   t   listR   R   t   __new__R   t   appendt   typest
   MethodTypet   default_tip(   R   R   R   R$   t
   append_doc(    (   R   s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_builtins/   s    		c         C   s2   t  j j d  k	 r. |  j t t  j ƒ d ƒ n  d  S(   NsÆ   (width=70, initial_indent='', subsequent_indent='', expand_tabs=True,
    replace_whitespace=True, fix_sentence_endings=False, break_long_words=True,
    drop_whitespace=True, break_on_hyphens=True)(   t   textwrapt   TextWrapperR   R   R    R!   (   R   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_signature_wrapH   s    c         C   sC   d „  } d d | _  |  j t | ƒ d d t j d d ƒ d  S(   Nc           S   s   d  S(   N(    (    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   fQ   R    R   i,  s   ()
i   s   ...(   R   R    R!   t   ctt	   _MAX_COLS(   R   R0   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_docline_truncationP   s    	c         C   sk   |  j  t t ƒ d ƒ d „  } d } | d d d | _ |  j  t | ƒ d | t j d d d	 ƒ d  S(
   NsX   ()
list() -> new empty list
list(iterable) -> new list initialized from iterable's itemsc           S   s   d  S(   N(    (    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR0   \   s    s   a
b
c
d
i,  t   eR0   s   ()
i   s   ...(   R    R!   R%   R   R1   R2   (   R   R0   t   s(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_multiline_docstringU   s    	c         C   s¿   d „  } d | _  d  d „ } d | _  d „  } d | _  d „  } d | _  d  d	 „ } d
 | _  | j d  k	 ru d n d } x= | | | | | t f D]# } |  j t | ƒ | j  | ƒ q” Wd  S(   Nc           S   s   d S(   R   N(    (    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR   d   R    s   ()c         S   s   d S(   R   N(    (   R   R   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR   f   R    s   (a, b=None)c         W   s   d S(   R   N(    (   R   R	   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR
   h   R    s
   (a, *args)c          W   s   d S(   R   N(    (   R	   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR   j   R    s   (*args)c         _   s   d S(   R   N(    (   R   R   R	   t   kwds(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR   l   R    s   (a, b=None, *args, **kwargs)s   
docR    (   R   R   R   R   R    R!   (   R   R   R   R
   R   R   R   t   func(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_functionsc   s    								c         C   s±   t  j d  k	 r d n d } xU t  j t  j t  j t  j t  j t  j t  j	 f D]# } |  j
 t | ƒ | j | ƒ qL W|  j
 t t  j ƒ d | ƒ |  j
 t t  j ƒ d | ƒ d  S(   Ns   
docR    s   (a)s   (b)(   R   R   R   R   R   R
   R   R   R   R   R    R!   R   R   R   (   R   R   t   meth(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_methodss   s
    7!c         C   s•   t  j d  k	 r d n d } xs t j d f t j d f t j d f t j d f t d f t  j d f f D]& \ } } |  j	 t
 | ƒ | | ƒ qg Wd  S(   Ns   
docR    s   ()s   (*args)s   (self)s   (ci)s   (a)(   R   R   R   t   tcR   R   R   R   R   R    R!   (   R   R   R:   t   mtip(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_bound_methodsz   s    '1c         C   sÂ   d d	 d „  ƒ  Y} d „  } d „  } | ƒ  } |  j  t | j ƒ d ƒ |  j  t | j ƒ d ƒ |  j  t | j ƒ d ƒ |  j  t | j ƒ d ƒ |  j  t | ƒ d ƒ |  j  t | ƒ d ƒ d  S(
   Nt   Cc           B   s   e  Z d  „  Z d „  Z RS(   c          W   s   d  S(   N(    (   R	   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   m1„   R    c          [   s   d  S(   N(    (   R7   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   m2…   R    (   R   R   R@   RA   (    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR?   ƒ   s   	c         _   s   d  S(   N(    (   R	   t   kwargsR   t   k(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   f1†   R    c         _   s   d  S(   N(    (   R	   RB   t   args1t   kwargs1R   RC   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   f2‡   R    s   (*args)s
   (**kwargs)s!   (args, kwargs, *args1, **kwargs1)s1   (args, kwargs, args1, kwargs1, *args2, **kwargs2)(    (   R    R!   R@   RA   (   R   R?   RD   RG   t   c(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_starred_parameter   s    			c         C   s^   d „  } | t  _ |  j t | ƒ d ƒ |  j t t  j ƒ d ƒ |  j t t j ƒ d ƒ d  S(   Nc         S   s   d  S(   N(    (   R5   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   nd’   R    s   (s)s   ()(   R   RJ   R    R!   R<   (   R   RJ   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_no_docstring‘   s
    		c         C   s‡   d t  f d „  ƒ  Y} d | f d „  ƒ  Y} xT | d f | d f | ƒ  d f | ƒ  d f f D]" \ } } |  j t | ƒ | ƒ q] Wd  S(   Nt   NoCallc           B   s   e  Z d  „  Z RS(   c         S   s
   t  ‚ d  S(   N(   t   BaseException(   R   t   name(    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   __getattr__š   s    (   R   R   RO   (    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyRL   ™   s   t   Callc           B   s   e  Z d  „  Z RS(   c         S   s   d  S(   N(    (   R   R   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR      s    (   R   R   R   (    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyRP   œ   s   s   ()R    s   (ci)(   t   objectR    R!   (   R   RL   RP   R:   R=   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_attribute_exception˜   s
    (c         C   s=   x6 d d d d g  i  f D] } |  j  t | ƒ d ƒ q Wd  S(   Ni    g        t   0R    (   R    R!   (   R   R"   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_non_callables£   s    (   R   R   R,   R/   R3   R6   R9   R;   R>   RI   RK   RR   RT   (    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR   '   s   										t   Get_entityTestc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   |  j  t j d ƒ ƒ d  S(   Ns   1//0(   t   assertIsNonet   CTit
   get_entity(   R   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_bad_entityª   s    c         C   s   |  j  t j d ƒ t ƒ d  S(   Nt   int(   t   assertIsRW   RX   RZ   (   R   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_good_entity¬   s    (   R   R   RY   R\   (    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyRU   §   s   	t   Py2Testc           B   s   e  Z d  „  Z RS(   c         B   sB   e  j ƒ   e  j d ƒ d d  UWd  QX|  j e e ƒ d ƒ d  S(   Nt   ignores   def f((a,b), c=0.0): passs   (<tuple>, c=0.0)(   t   warningst   catch_warningst   simplefilterR    R!   R0   (   R   (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   test_paramtuple_float°   s    (   R   R   Rb   (    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyR]   ¯   s   t   __main__t	   verbosityi   t   exit(   t   unittestt   idlelib.CallTipst   CallTipsR1   RW   R-   R(   R_   R*   RQ   R   R<   t   get_arg_textR!   t   TestCaseR   RU   R]   R   t   maint   False(    (    (    s0   lib/python2.7/idlelib/idle_test/test_calltips.pyt   <module>   s   		€	