o
    ÷ÑÐb]  ã                   @   s(   d dl mZ d dlmZmZ dd„ ZdS )é    )Úabsolute_import)ÚLXMLOutputCheckerÚ	PARSE_XMLc                 C   sL   t ƒ }G dd„ dƒ}|ƒ }||_| || t¡}|du r$| || t¡}|S dS )z`Use doctest checking from lxml for comparing XML trees. Returns diff if the two are not the samec                   @   s   e Zd ZdS )z!compare_xml.<locals>.DummyDocTestN)Ú__name__Ú
__module__Ú__qualname__© r   r   úV/var/www/secure340b-portal/env/lib/python3.10/site-packages/et_xmlfile/tests/helper.pyÚDummyDocTest   s    r
   FN)r   ZwantÚcheck_outputr   Zoutput_difference)Ú	generatedÚexpectedÚcheckerr
   ÚobÚcheckÚdiffr   r   r	   Úcompare_xml   s   þr   N)Ú
__future__r   Zlxml.doctestcomparer   r   r   r   r   r   r	   Ú<module>   s    