ó
ŠV]c           @   s:   d  d l  m Z d  d l m Z d e f d     YZ d S(   iÿÿÿÿ(   t   strip_string_literals(   t
   CythonTestt   TestStripLiteralsc           B   s   e  Z d    Z d   Z d   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         C   sk   t  | d d \ } } |  j | |  x, | j   D] \ } } | j | |  } q5 W|  j | |  d  S(   Nt   prefixt   _L(   R    t   assertEqualt   itemst   replace(   t   selft   beforet   expectedt   actualt   literalst   keyt   value(    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   t   s
    c         C   s   |  j  d d  d  S(   Nt    (   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt
   test_empty   s    c         C   s   |  j  d d  d  S(   Ns   'x's   '_L1_'(   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   test_single_quote   s    c         C   s   |  j  d d  d  S(   Ns   "x"s   "_L1_"(   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   test_double_quote   s    c         C   s   |  j  d d  d  S(   Ns	    '"' "'" s    '_L1_' "_L2_" (   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   test_nested_quotes   s    c         C   s   |  j  d d  d  S(   Ns
    '''a
''' s    '''_L1_''' (   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   test_triple_quote   s    c         C   s4   |  j  d d  |  j  d d  |  j  d d  d  S(   Ns   'a\'b's   '_L1_'s   'a\\'s   'a\\\'b'(   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   test_backslash   s    c         C   s   |  j  d d  d  S(   Ns   u'abc's   u'_L1_'(   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   test_unicode"   s    c         C   s   |  j  d d  d  S(   Ns   r'abc\\'s   r'_L1_'(   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   test_raw%   s    c         C   s   |  j  d d  d  S(   Ns	   ru'abc\\'s   ru'_L1_'(   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   test_raw_unicode(   s    c         C   s   |  j  d d  d  S(   Ns	   abc # foos	   abc #_L1_(   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   test_comment+   s    c         C   s$   |  j  d d  |  j  d d  d  S(   Ns	   abc # 'x's	   abc #_L1_s   'abc#'s   '_L1_'(   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   test_comment_and_quote.   s    c         C   s   |  j  d d  d  S(   Ns    include 'a.pxi' # something heres   include '_L1_' #_L2_(   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   test_include2   s    	c         C   s   |  j  d d  d  S(   Ns!   cdef extern from 'a.h': # comments   cdef extern from '_L1_': #_L2_(   R   (   R   (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   test_extern6   s    	(   t   __name__t
   __module__R   R   R   R   R   R   R   R   R   R   R   R   R   R   (    (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyR      s   													N(   t   Cython.Build.DependenciesR    t   Cython.TestUtilsR   R   (    (    (    sC   lib/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   <module>   s   