ķ
Ąŧ\c           @   sx   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	 d   Z
 d   Z d   Z d	   Z d
 S(   i˙˙˙˙(   t   CodePrinter(   t
   StrPrinter(   t   symbols(   t   Dummy(   t   raisesc          K   s+   t  d |   } t   | _ t   | _ | S(   Nt   settings(   R    t   sett   _not_supportedt   _number_symbols(   t   kwargst   p(    (    sD   lib/python2.7/site-packages/sympy/printing/tests/test_codeprinter.pyt   setup_test_printer   s    c          C   s;   t  d  }  t   } | j |   d |  j k s7 t  d  S(   Nt   ds   d_%i(   R   R   t   _print_Dummyt   dummy_indext   AssertionError(   R   R
   (    (    sD   lib/python2.7/site-packages/sympy/printing/tests/test_codeprinter.pyt   test_print_Dummy   s    	c          C   s  t  d  \ }  } t   } | j |   d k s6 t  | j |  d k sQ t  | j j d g  | j |  d k s t  t d t  } | j j d g  t t   | j |  Wd  QXt d d  } | j j d g  | j |  d k sū t  d  S(	   Ns   x, ift   xt   ift   if_t   error_on_reservedt   reserved_word_suffixt   _He_Mant	   if_He_Man(	   R   R   t   _printR   t   reserved_wordst   updatet   TrueR   t
   ValueError(   R   t   yR
   (    (    sD   lib/python2.7/site-packages/sympy/printing/tests/test_codeprinter.pyt   test_print_Symbol   s    	c           C   s|   t  j j t  j j k s t  t  j j t  j j k s< t  t  j j t j j k sZ t  t  j j t j j k sx t  d  S(   N(   R    t   _print_MutableSparseMatrixt   __name__t   _print_not_supportedR   t   _print_ImmutableSparseMatrixR   t   _print_MatrixBase(    (    (    sD   lib/python2.7/site-packages/sympy/printing/tests/test_codeprinter.pyt   test_issue_15791(   s    				N(   t   sympy.printing.codeprinterR    t   sympy.printing.strR   t
   sympy.coreR   t   sympy.core.symbolR   t   sympy.utilities.pytestR   R   R   R   R$   (    (    (    sD   lib/python2.7/site-packages/sympy/printing/tests/test_codeprinter.pyt   <module>   s   			