HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/twisted/python/test/__pycache__/test_htmlizer.cpython-38.pyc
U


W[��@s<dZddlmZddlmZddlmZGdd�de�ZdS)z'
Tests for L{twisted.python.htmlizer}.
�)�BytesIO)�TestCase)�filterc@s eZdZdZdd�Zdd�ZdS)�FilterTestsz6
    Tests for L{twisted.python.htmlizer.filter}.
    cCs,td�}t�}t||�|�|��d�dS)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�rrZassertEqual�getvalue��self�input�output�r
�C/usr/lib/python3/dist-packages/twisted/python/test/test_htmlizer.py�
test_emptys
�zFilterTests.test_emptycCs,td�}t�}t||�|�|��d�dS)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.
        sfoo
s<pre><span class="py-src-variable">foo</span><span class="py-src-newline">
</span><span class="py-src-endmarker"></span></pre>
Nrr	r
r
r�
test_variables
�zFilterTests.test_variableN)�__name__�
__module__�__qualname__�__doc__rrr
r
r
rrs
rN)r�iorZtwisted.trial.unittestrZtwisted.python.htmlizerrrr
r
r
r�<module>s