Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.219.218.136
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_reader.pyc
�
���cc@s�ddlZddlZddlZddlmZddlmZmZddl	m
Z
mZdejfd��YZ
dejfd	��YZed
kr�ej�ndS(i����N(t
import_module(tMultiplexedPathtNamespaceReaderi(tFileNotFoundErrortNotADirectoryErrortMultiplexedPathTestcBsheZed��Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�ZRS(
cCs+tjjtjjtdd��|_dS(Ns..tnamespacedata01(tostpathtabspathtjoint__file__tfolder(tcls((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyt
setUpClasss	cCs!|jt��t�WdQXdS(N(tassertRaisesRR(tself((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyttest_init_no_pathsscCs6|jt��!ttjj|jd��WdQXdS(Nsbinary.file(RRRRRR
R(R((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyttest_init_filescCsgd�t|j�j�D�}y|jd�Wnttfk
rInX|j|dddh�dS(NcSsh|]}|j�qS((tname(t.0R((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pys	<setcomp>s	t__pycache__sbinary.filesutf-16.files
utf-8.file(RRtiterdirtremovetKeyErrort
ValueErrortassertEqual(Rtcontents((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyttest_iterdirscCs�tjjtjjtdd��}d�t|j|�j�D�}x9dD]1}y|j|�WqMt	t
fk
r}qMXqMW|j|dddd	d
h�dS(Ns..tdata01cSsh|]}|j�qS((R(RR((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pys	<setcomp>,s	Rs__init__.pycs__init__.pysbinary.filetsubdirectorysutf-16.files
utf-8.file(Rs__init__.pyc(RRR	R
RRRRRRRR(RRRR((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyttest_iterdir_duplicate's	
	cCs#|jt|j�j�t�dS(N(RRRtis_dirtTrue(R((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyttest_is_dir<scCs#|jt|j�j�t�dS(N(RRRtis_filetFalse(R((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyttest_is_file?scCsst|j�}|jt��|j�WdQX|jt��|j�WdQX|jt��|j�WdQXdS(N(RRRRt
read_bytest	read_texttopen(RR((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyttest_open_fileBscCsdGHtjjtjjtd��}tjj|d�}t|j|�}|jt|j	d��t
|�dtjjdd��|jt|j	d��t
|�dtjjdd��|jt|j	d��t
|�dtjjdd��dS(	Nttest_join_paths..Rsbinary.fileiRRt	imaginary(RRR	R
RRRRtstrtjoinpathtlen(RtprefixRR((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyR*Ks!   cCs/|jtt|j��dj|j��dS(NsMultiplexedPath('{}')(RtreprRRtformat(R((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyt	test_repr]s(
t__name__t
__module__tclassmethodRRRRRR"R%R)R*R2(((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyRs			
						tNamespaceReaderTestcBspeZed��Zd�Zejejddkd�d��Z	ejejddkd�d��Z
RS(cCs/tjjtjjtjjtd���dS(Ns..(tsysRtappendRR	R
R(R
((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyRescCs*|jt��tddg�WdQXdS(Ntpath1tpath2(RRR(R((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyttest_init_errorisiis,namespace packages not available on Python 2cCs�td�}t|jj�}tjjtjjtdd��}|j	|j
d�tjj|d��|j	|j
d�tjj|d��dS(NRs..sbinary.fileR+(RRt__spec__tsubmodule_search_locationsRRR	R
RRt
resource_path(RRtreadertroot((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyttest_resource_pathms$
cCs�td�}t|jj�}tjjtjjtdd��}|j	|j
�t�|jt
|j
��dj|��dS(NRs..sMultiplexedPath('{}')(RRR<R=RRR	R
RtassertIsInstancetfilesRRR0R1(RRR?R@((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyt
test_filess$(R3R4R5RR;tunittestt
skipUnlessR7tversion_infoRARD(((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyR6ds	t__main__(tos.pathRR7REt	importlibRtimportlib_resources.readersRRt_compatRRtTestCaseRR6R3tmain(((sI/usr/lib/python2.7/site-packages/importlib_resources/tests/test_reader.pyt<module>sY,
© 2025 GrazzMean