HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/lazr/restfulclient/tests/__pycache__/test_docs.cpython-38.pyc
U

�T�Z��@s�dZeZdgZddlZddlZddlZddlmZm	Z	m
Z
mZddlZddl
mZmZejejBejBZdd�Zdd	�Zd
d
d�Zdd�ZdS)zTest harness for doctests.�
load_tests�N)�resource_filename�resource_exists�resource_listdir�cleanup_resources)�install�	uninstallcCs&ddlm}t�t�dd|j�dS)Nr��	WSGILayerz
cookbooks.dev�P)�0lazr.restful.example.base.tests.test_integrationr
r�wsgi_interceptZadd_wsgi_interceptZmake_application)�testr
�r�D/usr/lib/python3/dist-packages/lazr/restfulclient/tests/test_docs.py�setUp,s�rcCs6ddlm}ddlm}t�||�}i|_d|_dS)Nr)�IFileManager)�
getUtility)Z$lazr.restful.example.base.interfacesrZzope.componentrr�filesZcounter)rrrZfile_managerrrr�tearDown3src	Cs\g}tdd�rXtdd�D]>}|dk	r0|�|�r0q|�|�r|�tj�tdd|���q|S)z(Find doctests matching a certain suffix.zlazr.restfulclientZdocsNzdocs/%s)rr�endswith�append�os�path�abspathr)�suffix�
ignore_suffixZ
doctest_files�namerrr�
find_doctests<s

���rcCsdddlm}t�t�tjtddd�dtt	t
d��}||_|�|�|�tjtd�dtd���|S)	zLoad all the doctests.rr	z.rstz.standalone.rst)rF)�module_relative�optionflagsrr)rr )
rr
�atexit�registerr�doctestZDocFileSuiter�
DOCTEST_FLAGSrrZlayerZaddTest)�loaderZtests�patternr
Z
restful_suiterrrrLs"

�
�
)N)�__doc__�typeZ
__metaclass__�__all__r!r#rZ
pkg_resourcesrrrrr
Z!wsgi_intercept.httplib2_interceptrr�ELLIPSISZNORMALIZE_WHITESPACEZREPORT_NDIFFr$rrrrrrrr�<module>s&����