Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.9/test/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.9/test/__pycache__/test_cgitb.cpython-39.pyc

a

��g 
�@sVddlmZddlmZddlZddlZddlZGdd�dej�Ze	dkrRe�
�dS)�)�temp_dir)�assert_python_failureNc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�	TestCgitbcCsPd}|�t�|�d�|��|�t�|�d�|��|�t�|�d�|��dS)Nz
Hello Robbie!z<small>{}</small>z<strong>{}</strong>z<font color="#909090">{}</font>)�assertEqual�cgitb�small�format�strong�grey��self�text�r�+/usr/local/lib/python3.9/test/test_cgitb.py�
test_fonts	s�zTestCgitb.test_fontscCs:|�t�d�d�|�t�d�d�|�t�d�d�dS)N�)rrrr	r
)rrrr�test_blanksszTestCgitb.test_blanksc
Cs`ztd��WnNtyZ}z6t�t���}|�d|�|�t|�|�WYd}~n
d}~00dS�N�Hello World�
ValueError)rr�html�sys�exc_info�assertIn�str)r�errrrrr�	test_htmlszTestCgitb.test_htmlcCsJztd��Wn8tyDt�t���}|�d|�|�d|�Yn0dSr)rrr
rrrrrrr�	test_textszTestCgitb.test_textcCs�t��,}tddt|�dd�\}}}Wd�n1s80Y|��}|�d|�|�d|�|�d|�|�d|�|�d	|�dS)
N�-czFimport cgitb; cgitb.enable(logdir=%s); raise ValueError("Hello World")�utf-8�ZPYTHONIOENCODINGrrz<strong>&lt;module&gt;</strong>�<p>�</p>)rr�repr�decoder�rZtracedir�rc�outrrrr�%test_syshook_no_logdir_default_format's��*z/TestCgitb.test_syshook_no_logdir_default_formatcCs~t��,}tddt|�dd�\}}}Wd�n1s80Y|��}|�d|�|�d|�|�d|�|�d|�dS)	NrzUimport cgitb; cgitb.enable(format="text", logdir=%s); raise ValueError("Hello World")rr rrr!r")rrr#r$rZassertNotInr%rrr�"test_syshook_no_logdir_text_format6s��*z,TestCgitb.test_syshook_no_logdir_text_formatN)	�__name__�
__module__�__qualname__rrrrr(r)rrrrrs
r�__main__)Ztest.supportrZtest.support.script_helperrZunittestrrZTestCaserr*�mainrrrr�<module>s>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists