ó
ŠV]c           @   s|   d  d l  m Z d  d l m Z d  d l m Z d  d l m Z d  d l m	 Z	 m
 Z
 m Z m Z d e f d     YZ d S(	   iÿÿÿÿ(   t
   ModuleNode(   t   ModuleScope(   t   TransformTest(   t   MethodDispatcherTransform(   t   NormalizeTreet   AnalyseDeclarationsTransformt   AnalyseExpressionsTransformt   InterpretCompilerDirectivest   TestMethodDispatcherTransformc           B   s)   e  Z d Z d    Z d   Z d   Z RS(   c         C   sm   |  j  d  k rf d  } d   } | t |  t | i   t |  t |  g } |  j | d  |  _  n  |  j  S(   Nc         S   s=   t  d d  d   } t |  j d d  d |  d | d d d i  S(   Nt   testt   doct   bodyt   scopet   full_module_namet   directive_comments(   R   t   NoneR    t   pos(   t   nodeR   (    (    s@   lib/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt   fake_module   s    u   
                cdef bytes s = b'asdfg'
                cdef dict d = {1:2}
                x = s * 3
                d.get('test')
            (   t   _treeR   R   R   R   R   t   run_pipeline(   t   selft   contextR   t   pipeline(    (    s@   lib/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt   _build_tree   s    				c            sY   d g   d t  f   f d     Y} |  j   } | d   |  |  j d   d  d  S(   Ni    t   Testc              s   e  Z   f d    Z RS(   c            s     d c d 7<| S(   Ni    i   (    (   R   R   t   funct   argst   unbound(   t   calls(    s@   lib/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt   _handle_simple_method_dict_get(   s    (   t   __name__t
   __module__R   (    (   R   (    s@   lib/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyR   '   s   i   (   R   R   R   t   assertEqual(   R   R   t   tree(    (   R   s@   lib/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt   test_builtin_method%   s
    	c            sx   i d d 6d d 6  d t  f   f d     Y} |  j   } | d   |  |  j d   d  |  j d   d  d  S(   Ni    t   bytest   objectR   c              s&   e  Z   f d    Z   f d   Z RS(   c            s     d c d 7<| S(   NR$   i   (    (   R   R   R   R   R   (   R   (    s@   lib/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt#   _handle_simple_method_bytes___mul__3   s    c            s     d c d 7<| S(   NR%   i   (    (   R   R   R   R   R   (   R   (    s@   lib/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt$   _handle_simple_method_object___mul__6   s    (   R   R    R&   R'   (    (   R   (    s@   lib/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyR   2   s   i   (   R   R   R   R!   (   R   R   R"   (    (   R   s@   lib/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt   test_binop_method0   s    N(   R   R    R   R   R   R#   R(   (    (    (    s@   lib/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyR   
   s   		N(   t   Cython.Compiler.ModuleNodeR    t   Cython.Compiler.SymtabR   t   Cython.TestUtilsR   t   Cython.Compiler.VisitorR   t#   Cython.Compiler.ParseTreeTransformsR   R   R   R   R   (    (    (    s@   lib/python2.7/site-packages/Cython/Compiler/Tests/TestVisitor.pyt   <module>   s
   "