https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/genshi/template/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/genshi/template/tests/__pycache__/interpolation.cpython-310.pyc
o

!�bs�@svddlZddlZddlZddlmZddlmZmZddlm	Z	Gdd�dej
�Zdd�Ze
d	kr9ejdd
�dSdS)�N)�TEXT)�TemplateSyntaxError�EXPR)�interpolatec@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd1d2�Zd3S)4�InterpolateTestCasecC�Httd��}|�dt|��|�t|dd�|�d|dd�dS)N�bla�r��listr�assertEqual�lenr��self�parts�r�E/usr/lib/python3/dist-packages/genshi/template/tests/interpolation.py�test_interpolate_string�z+InterpolateTestCase.test_interpolate_stringcC�Jttd��}|�dt|��|�t|dd�|�d|ddj�dS)N�${bla}r	rr�rrrr
r�sourcerrrr�test_interpolate_simple�z+InterpolateTestCase.test_interpolate_simplecC�Httd��}|�dt|��|�t|dd�|�d|dd�dS)Nz$${bla}r	rrr
rrrr�test_interpolate_escaped%rz,InterpolateTestCase.test_interpolate_escapedcC�rttd��}|�dt|��|�t|dd�|�d|dd�|�t|dd�|�d|ddj�dS)Nz$$${bla}�r�$r	r�rrrr
rrrrrrr�test_interpolate_dobuleescaped+�z2InterpolateTestCase.test_interpolate_dobuleescapedcCr)N�$blar	rrrrrrr�test_interpolate_short3rz*InterpolateTestCase.test_interpolate_shortcCr)Nz$$blar	rr#r
rrrr�test_interpolate_short_escaped9rz2InterpolateTestCase.test_interpolate_short_escapedcCr)Nzmy $$bla = 2r	rzmy $bla = 2r
rrrr� test_interpolate_short_escaped_2?rz4InterpolateTestCase.test_interpolate_short_escaped_2cCr)Nz$$$blarrrr	rr rrrr�$test_interpolate_short_doubleescapedEr"z8InterpolateTestCase.test_interpolate_short_doubleescapedcCr)Nz$_blar	r�_blarrrrr�/test_interpolate_short_starting_with_underscoreMrzCInterpolateTestCase.test_interpolate_short_starting_with_underscorecCr)Nz$foo_barr	r�foo_barrrrrr�,test_interpolate_short_containing_underscoreSrz@InterpolateTestCase.test_interpolate_short_containing_underscorecCr)Nz$.blar	rr
rrrr�(test_interpolate_short_starting_with_dotYrz<InterpolateTestCase.test_interpolate_short_starting_with_dotcCr)Nz$foo.barr	rzfoo.barrrrrr�%test_interpolate_short_containing_dot_rz9InterpolateTestCase.test_interpolate_short_containing_dotcCr�Nz$0blar	rr
rrrr�*test_interpolate_short_starting_with_digiterz>InterpolateTestCase.test_interpolate_short_starting_with_digitcCr�Nz$foo0r	r�foo0rrrrr�'test_interpolate_short_containing_digitkrz;InterpolateTestCase.test_interpolate_short_containing_digitcCrr.r
rrrrr/qrcCrr0rrrrrr2wrcCr)Nz${{1:2}}r	rz{1:2}rrrrr�%test_interpolate_full_nested_brackets}rz9InterpolateTestCase.test_interpolate_full_nested_bracketsc
CsFzttd��Wnty}zWYd}~dSd}~ww|�d�dS)Nz${{1:2}zExpected TemplateSyntaxError)rrr�fail)r�errr�)test_interpolate_full_mismatched_brackets�s��z=InterpolateTestCase.test_interpolate_full_mismatched_bracketscCr)Nz${"}"}r	rz"}"rrrrr�"test_interpolate_quoted_brackets_1�rz6InterpolateTestCase.test_interpolate_quoted_brackets_1cCr)Nz${'}'}r	rz'}'rrrrr�"test_interpolate_quoted_brackets_2�rz6InterpolateTestCase.test_interpolate_quoted_brackets_2cCr)Nz
${'''}'''}r	rz'''}'''rrrrr�"test_interpolate_quoted_brackets_3�rz6InterpolateTestCase.test_interpolate_quoted_brackets_3cCr)Nz
${'''}"""'''}r	rz
'''}"""'''rrrrr�"test_interpolate_quoted_brackets_4�rz6InterpolateTestCase.test_interpolate_quoted_brackets_4cCr)Nz${'\'}'}r	rz'\'}'rrrrr�"test_interpolate_quoted_brackets_5�rz6InterpolateTestCase.test_interpolate_quoted_brackets_5cCs�ttd��}|�dt|��|�t|dd�|�d|ddj�|�t|dd�|�d|dd�|�t|dd�|�d|ddj�dS)	Nz
$foo bar $baz�r�foor	z bar r�baz)rrrr
rrrrrrr�test_interpolate_mixed1�sz+InterpolateTestCase.test_interpolate_mixed1cCs�ttd��}|�dt|��|�t|dd�|�d|dd�|�t|dd�|�d|ddj�|�t|dd�|�d|dd�dS)	Nzfoo $bar bazr<rzfoo r	�barrz bazr rrrr�test_interpolate_mixed2�sz+InterpolateTestCase.test_interpolate_mixed2cCs6ttd��}|�dt|��|�d|ddj�dS)Nz${"""foo
bar"""}r	z
"""foo
bar"""r)rrrr
rrrrr�test_interpolate_triplequoted�sz1InterpolateTestCase.test_interpolate_triplequotedN)�__name__�
__module__�__qualname__rrrr!r$r%r&r'r)r+r,r-r/r2r3r6r7r8r9r:r;r?rArBrrrrrs6

rcCs0t��}|�t�tj��|�t�td��|S)N�test)	�unittest�	TestSuite�addTest�doctest�DocTestSuiterrD�	makeSuiter)�suiterrrrM�srM�__main__)�defaultTest)rJ�sysrG�genshi.corer�genshi.template.baserr�genshi.template.interpolationr�TestCaserrMrC�mainrrrr�<module>s
-�

https://t.me/RX1948 - 2025