ó
Æù[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(    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   t   s
    c         C   s   |  j  d d ƒ d  S(   Nt    (   R   (   R   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/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   (    (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyR      s   													N(   t   Cython.Build.DependenciesR    t   Cython.TestUtilsR   R   (    (    (    st   /home/psgendb/BIRCHDEV/lib-linux-x86_64/python/lib64/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.pyt   <module>   s   