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/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

!�bZ�@svddlZddlZddlmZmZddlmZmZmZddl	m
Z
Gdd�dej�Zdd�Z
ed	kr9ejdd
�dSdS)�N)�Element�tag)�Attrs�Markup�Stream)�XMLc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�ElementFactoryTestCasecCsttjddd�d�}t|���}|�tjdtdg�fdf|d�|�tjddf|d�|�tj	ddf|d	�dS)
N�#)�href�	accesskey�Bar�a)r
r	�N���rr���
rr
�list�generate�assertEqualr�STARTr�TEXT�END��self�link�events�r�6/usr/lib/python3/dist-packages/genshi/tests/builder.py�	test_links��z ElementFactoryTestCase.test_linkcCs6ttjdd��}|�tjdtdg�fdf|d�dS)z�
        Verify that if an attribute value is given as an int (or some other
        non-string type), it is coverted to a string when the stream is
        generated.
        �)�id�foo)r!�3rrN)rrr"rrrr�rrrrr�test_nonstring_attributes!s��z0ElementFactoryTestCase.test_nonstring_attributescCsttjddd�d�}t|���}|�tjdtdg�fdf|d�|�tjddf|d�|�tj	ddf|d	�dS)
N�#1)r
�href_rr
)r
r&rrrrrrrrr�test_duplicate_attributes+s��z0ElementFactoryTestCase.test_duplicate_attributescCs�tt�td�����}|�dt|��|�tjdf|ddd��|�tjdf|ddd��|�tj	df|ddd��|�tj
d	f|d
dd��|�tj
df|ddd��dS)
Nz
<b>Foo</b>�)�spanrrr)�brr�Foor+r r*�)rrr*rrr�lenrrrrr$rrr�test_stream_as_child3s"z+ElementFactoryTestCase.test_stream_as_childcCs*td�tjddd�}|�|td��dS)NzSee %s�genshizhttp://genshi.edgwall.org)r
z2See <a href="http://genshi.edgwall.org">genshi</a>)rrr
r)r�mrrr�test_markup_escape<s�z)ElementFactoryTestCase.test_markup_escapeN)�__name__�
__module__�__qualname__rr%r(r/r2rrrrrs	
	rcCs0t��}|�t�tj��|�t�td��|S)N�test)	�unittest�	TestSuite�addTest�doctest�DocTestSuiterr4�	makeSuiter)�suiterrrr=Csr=�__main__)�defaultTest)r:r7�genshi.builderrr�genshi.corerrr�genshi.inputr�TestCaserr=r3�mainrrrr�<module>s
-�

https://t.me/RX1948 - 2025