o
    ¯bù  ã                   @   s<   d Z ddlmZ ddlmZ ddlmZ G dd„ deƒZdS )z'
Tests for L{twisted.python.htmlizer}.
é    )ÚBytesIO)Úfilter)ÚTestCasec                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚFilterTestsz6
    Tests for L{twisted.python.htmlizer.filter}.
    c                 C   ó,   t dƒ}t ƒ }t||ƒ |  | ¡ d¡ dS )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Úoutput© r   úC/usr/lib/python3/dist-packages/twisted/python/test/test_htmlizer.pyÚ
test_empty   s   
ÿzFilterTests.test_emptyc                 C   r   )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   r   r   r   Útest_variable   s   
þzFilterTests.test_variableN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s    r   N)r   Úior   Útwisted.python.htmlizerr   Útwisted.trial.unittestr   r   r   r   r   r   Ú<module>   s
   