HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/twisted/python/test/__pycache__/test_htmlizer.cpython-310.pyc
o

�b��@s<dZddlmZddlmZddlmZGdd�de�ZdS)z'
Tests for L{twisted.python.htmlizer}.
�)�BytesIO)�filter)�TestCasec@s eZdZdZdd�Zdd�ZdS)�FilterTestsz6
    Tests for L{twisted.python.htmlizer.filter}.
    cC�,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�rr�assertEqual�getvalue��self�input�output�r�C/usr/lib/python3/dist-packages/twisted/python/test/test_htmlizer.py�
test_emptys
�zFilterTests.test_emptycCr)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>
Nrrrrr�
test_variables
�zFilterTests.test_variableN)�__name__�
__module__�__qualname__�__doc__rrrrrrrsrN)r�ior�twisted.python.htmlizerr�twisted.trial.unittestrrrrrr�<module>s