$15 GRAYBYTE WORDPRESS FILE MANAGER $97

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python27/lib64/python2.7/unittest/

HOME
Current File : /opt/alt/python27/lib64/python2.7/unittest//loader.pyc
�
�V~gc@sdZddlZddlZddlZddlZddlZddlmZddl	m	Z	ddl
mZmZe
Zejdej�Zd�Zd	�Zd
�Zdefd��YZe�Zed
�Zed�Zdeejd�Zdeejd�ZdS(sLoading unittests.i����N(t
cmp_to_key(tfnmatchi(tcasetsuites[_a-z]\w*\.py$cCs/d|tj�f}td|t|�|�S(Ns#Failed to import test module: %s
%stModuleImportFailure(t	tracebackt
format_exct_make_failed_testtImportError(tnamet
suiteClasstmessage((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyt_make_failed_import_testscCstd|||�S(NtLoadTestsFailure(R(R	t	exceptionR
((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyt_make_failed_load_testsscsG�fd�}i||6}t|tjf|�}|||�f�S(Ncs
��dS(N((tself(R(s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyttestFailures(ttypeRtTestCase(t	classnamet
methodnameRR
Rtattrst	TestClass((Rs4/opt/alt/python27/lib64/python2.7/unittest/loader.pyRs
t
TestLoadercBs�eZdZdZeZejZdZ
d�Zed�Z
dd�Zdd�Zd�Zddd�Zd	�Zd
�Zd�Zd�Zd
�ZRS(s�
    This class is responsible for loading tests according to various criteria
    and returning them wrapped in a TestSuite
    ttestcCsnt|tj�r!td��n|j|�}|rRt|d�rRdg}n|jt||��}|S(s;Return a suite of all test cases contained in testCaseClasssYTest cases should not be derived from TestSuite. Maybe you meant to derive from TestCase?trunTest(t
issubclassRt	TestSuitet	TypeErrortgetTestCaseNamesthasattrR
tmap(Rt
testCaseClasst
testCaseNamestloaded_suite((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pytloadTestsFromTestCase0scCs�g}x]t|�D]O}t||�}t|t�rt|tj�r|j|j|��qqWt|dd�}|j
|�}|r�|dk	r�y|||d�SWq�tk
r�}t|j
||j
�SXn|S(s>Return a suite of all test cases contained in the given modulet
load_testsN(tdirtgetattrt
isinstanceRRRRtappendR$tNoneR
t	ExceptionRt__name__(Rtmoduletuse_load_teststtestsR	tobjR%te((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pytloadTestsFromModule;s!c
Cs�|jd�}|dkr}|}xK|roytdj|��}PWq%tk
rk|d=|sl�qlq%Xq%W|d}n|}x$|D]}|t||�}}q�Wt|tj�r�|j	|�St|t
�r�t|tj
�r�|j|�St|tj�rPt|t
�rPt|tj
�rP|d}||�}|j|g�St|tj�rf|St|d�r�|�}	t|	tj�r�|	St|	tj
�r�|j|	g�Std||	f��ntd|��dS(sSReturn a suite of all test cases given a string specifier.

        The name may resolve either to a module, a test case class, a
        test method within a test case class, or a callable object which
        returns a TestCase or TestSuite instance.

        The method optionally resolves the names relative to a given module.
        t.i����it__call__s"calling %s returned %s, not a tests$don't know how to make test from: %sN(tsplitR*t
__import__tjoinRR'R(ttypest
ModuleTypeR2RRRRR$tUnboundMethodTypeR
RRRR(
RR	R-tpartst
parts_copyR0tparttparenttinstR((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pytloadTestsFromNameMsH		



!

	cCs2g|D]}|j||�^q}|j|�S(s�Return a suite of all test cases found using the given sequence
        of string specifiers. See 'loadTestsFromName()'.
        (R@R
(RtnamesR-R	tsuites((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pytloadTestsFromNames~s%cCsP||jd�}t|t|��}|jrL|jdt|j��n|S(sLReturn a sorted sequence of method names found within testCaseClass
        cSs%|j|�o$tt||�d�S(NR4(t
startswithRR'(tattrnameR!tprefix((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pytisTestMethod�stkey(ttestMethodPrefixtfilterR&tsortTestMethodsUsingtsortt	_CmpToKey(RR!RGttestFnNames((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyR�s	stest*.pyc	Cs�t}|dkr-|jdk	r-|j}n|dkrHt}|}ntjj|�}|tjkrtjjd|�n||_t}tjj	tjj|��r�tjj|�}||kr�tjj
tjj|d��}q�n�yt|�Wnt
k
rt}nmXtj|}|jd�d}tjjtjj|j��}|r�|j|�|_tjj|�n|r�t
d|��nt|j||��}|j|�S(s+Find and return all test modules from the specified start
        directory, recursing into subdirectories to find them. Only test files
        that match the pattern will be loaded. (Using shell style pattern
        matching.)

        All test modules must be importable from the top level of the project.
        If the start directory is not the top level directory then the top
        level directory must be specified separately.

        If a test package name (directory with '__init__.py') matches the
        pattern then the package will be checked for a 'load_tests' function. If
        this exists then it will be called with loader, tests, pattern.

        If load_tests exists then discovery does  *not* recurse into the package,
        load_tests is responsible for loading all tests in the package.

        The pattern is deliberately not stored as a loader attribute so that
        packages can continue discovery themselves. top_level_dir is stored so
        load_tests does not need to pass this argument in to loader.discover().
        is__init__.pyR3s%Start directory is not importable: %rN(tFalseR*t_top_level_dirtTruetostpathtabspathtsystinserttisdirtisfileR7R6RtmodulesR5tdirnamet__file__t _get_directory_containing_moduletremovetlistt_find_testsR
(	Rt	start_dirtpatternt
top_level_dirtset_implicit_toptis_not_importablet
the_modulettop_partR/((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pytdiscover�s:		(


!cCsstj|}tjj|j�}tjj|�j�jd�r_tjj	tjj	|��Stjj	|�SdS(Ns__init__.py(
RURYRRRSRTR[tbasenametlowerRDRZ(Rtmodule_nameR-t	full_path((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyR\�s

!cCs�tjjtjj|��d}tjj||j�}tjj|�sYtd��|jd�sutd��|j	tjj
d�}|S(NisPath must be within the projects..R3(RRRStsplitexttnormpathtrelpathRPtisabstAssertionErrorRDtreplacetsep(RRSt_relpathR	((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyt_get_name_from_path�s"cCst|�tj|S(N(R6RURY(RR	((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyt_get_module_from_name�s
cCs
t||�S(N(R(RRSRkRa((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyt_match_path�sccs�tj|�}x�|D]�}tjj||�}tjj|�r�tj|�sXqn|j|||�ssqn|j|�}y|j	|�}Wnt
||j�Vq�Xtjjt
|d|��}tjjtjj|��d}	tjjtjj|��d}
|	j�|
j�kr�tjj|	�}tjjtjj|��d}tjj|�}
d}t||||
f��n|j|�Vqtjj|�rtjjtjj|d��s�qnd}d}t||�r?|j|�}|j	|�}t
|dd�}|j|dt�}n|dkr�|dk	r_|Vnxd|j||�D]}|VqrWq�y||||�VWq�tk
r�}t|j||j�Vq�XqqWdS(s/Used by discovery. Yields test suites it loads.R[isW%r module incorrectly imported from %r. Expected %r. Is this module globally installed?s__init__.pyR%R.N(RRtlistdirRSR7RXtVALID_MODULE_NAMEtmatchRvRtRuRR
RTR'RltrealpathRiRZRhRR2RWR*RROR_R+RR,(RR`RatpathsRSRkR	R-tmod_fileRztfullpath_noextt
module_dirtmod_nametexpected_dirtmsgR%R/tpackageRR1((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyR_�sV
"""!N(R,t
__module__t__doc__RItcmpRKRRR
R*RPR$RQR2R@RCRRgR\RtRuRvR_(((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyR&s 		1	@		
		cCs1t�}||_||_|r-||_n|S(N(RRKRIR
(RFt	sortUsingR
tloader((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyt_makeLoader+s			cCst||�j|�S(N(R�R(R!RFR�((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyR3sRcCst|||�j|�S(N(R�R$(R!RFR�R
((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyt	makeSuite6scCst|||�j|�S(N(R�R2(R-RFR�R
((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyt
findTestCases:s(R�RRtreRURR8t	functoolsRRMRtRRRQt
__unittesttcompilet
IGNORECASERxRRRtobjectRtdefaultTestLoaderR*R�R�RRR�R�(((s4/opt/alt/python27/lib64/python2.7/unittest/loader.pyt<module>s,			�	


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 Jan 2025 9.37 AM
root / linksafe
0755
test
--
24 Jan 2025 9.35 AM
root / linksafe
0755
__init__.py
2.717 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
__init__.pyc
2.979 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
__init__.pyo
2.979 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
__main__.py
0.232 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
__main__.pyc
0.489 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
__main__.pyo
0.489 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
case.py
42.953 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
case.pyc
41.882 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
case.pyo
41.882 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
loader.py
13.181 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
loader.pyc
11.389 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
loader.pyo
11.252 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
main.py
8.87 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
main.pyc
7.923 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
main.pyo
7.923 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
result.py
6.16 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
result.pyc
8.044 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
result.pyo
8.044 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
runner.py
6.38 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
runner.pyc
7.719 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
runner.pyo
7.719 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
signals.py
2.354 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
signals.pyc
2.843 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
signals.pyo
2.843 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
suite.py
9.579 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
suite.pyc
10.735 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
suite.pyo
10.735 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
util.py
4.498 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
util.pyc
4.514 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
util.pyo
4.514 KB
8 Jan 2025 10.43 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF