o
    >h	                     @   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dZdddZdS )	FilterTestsz6
    Tests for L{twisted.python.htmlizer.filter}.
    returnNc                 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   /var/www/vedio/testing/chatpythonscript.ninositsolution.com/env/lib/python3.10/site-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_variable)r   N)__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
   