mς
­fIc           @   st   d  k  Z  d k l Z d k l Z l Z d k l Z d e  i f d     YZ d   Z	 e
 d j o e	   n d  S(   N(   s   test_support(   s   transformers   ast(   s   compilet   Testsc           B   s   t  Z d   Z RS(   Nc         B   sρ   d d d g } xΫ | D]Σ } e i |  } e | e i  p t  | i	   d } e | e i  p t  | i	   d } e | e i  p t  e | d d  } h  } | | U| d d j p t  | d	 d
 j p t  q Wd S(   s.    Test multiple targets on the left hand side. s   a, b = 1, 2s   (a, b) = 1, 2s   ((a, b), c) = (1, 2), 3i    s   <string>t   singlet   ai   t   bi   N(   t   snippetst   st   transformert   parseR   t
   isinstancet   astt   Modulet   AssertionErrort   getChildNodest   child1t   Stmtt   child2t   Assignt   compilet   ct   vals(   t   selfR   R   R   R   R   R   R   (    (    t2   /mit/python/lib/python2.4/test/test_transformer.pyt   testMultipleLHS   s      (   t   __name__t
   __module__R   (    (    (    R   R       s   c           C   s   t  i t  d  S(   N(   t   test_supportt   run_unittestR    (    (    (    R   t	   test_main   s    t   __main__(   t   unittestt   testR   t   compilerR   R	   R   t   TestCaseR    R   R   (   R   R    R	   R   R   R   R   (    (    R   t   ?   s   		