| Server IP : 138.197.162.186 / Your IP : 216.73.216.184 Web Server : nginx/1.24.0 System : Linux ubuntu-s-1vcpu-512mb-10gb-tor1 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/python/test/__pycache__/ |
Upload File : |
�
Ϫ�f � �B � d Z ddlmZ ddlmZ ddlmZ G d� de� Zy)z'
Tests for L{twisted.python.htmlizer}.
� )�BytesIO)�filter)�TestCasec � � e Zd ZdZdd�Zdd�Zy)�FilterTestsz6
Tests for L{twisted.python.htmlizer.filter}.
Nc � � t d� }t � }t ||� | j |j � d� y)z�
If passed an empty input file, L{filter} writes a I{pre} tag containing
only an end marker to the output file.
� s2 <pre><span class="py-src-endmarker"></span></pre>
N�r r �assertEqual�getvalue��self�input�outputs �C/usr/lib/python3/dist-packages/twisted/python/test/test_htmlizer.py�
test_emptyzFilterTests.test_empty s9 � �
��������u�f������O�O��U�
r c � � t d� }t � }t ||� | j |j � d� y)z�
If passed an input file containing a variable access, L{filter} writes
a I{pre} tag containing a I{py-src-variable} span containing the
variable.
s foo
s <pre><span class="py-src-variable">foo</span><span class="py-src-newline">
</span><span class="py-src-endmarker"></span></pre>
Nr
r
s r �
test_variablezFilterTests.test_variable s= � � ��!������u�f������O�O��
E�
r )�returnN)�__name__�
__module__�__qualname__�__doc__r r � r r r r s � ��
�
r r N)r �ior �twisted.python.htmlizerr �twisted.trial.unittestr r r r r �<module>r s! ��� � *� +�
�(�
r