AlkantarClanX12

Your IP : 18.189.170.227


Current Path : /opt/alt/python27/lib64/python2.7/unittest/test/
Upload File :
Current File : //opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyo

�
^
bc@srddlZddlZddlZddlZddlZdejfd��YZedkrnej�ndS(i����Nt
TestDiscoverycBs}eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�ZRS(
cCsetj�}d|_|jd�}|j|d�ts>dS|jt��|jd�WdQXdS(Ns/foos/foo/bar/baz.pysbar.bazs/bar/baz.py(tunittestt
TestLoadert_top_level_dirt_get_name_from_pathtassertEqualt	__debug__tassertRaisestAssertionError(tselftloadertname((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyttest_get_name_from_paths	cs�tj�}tj��fd�}tjj��fd�}tjj��fd�}dddddd	d
gddgg��fd
�t_|j|�d�}|tj_|j|�d�}|tj_|j|�d�|_d�|_	tjj
d�}||_t|j
|d��}gdD]}	|	d^q6}
|
jgdD]}	d|	d^qY�|j||
�dS(Ncs
�t_dS(N(tostlistdir((toriginal_listdir(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pytrestore_listdirscs�tj_dS(N(R
tpathtisfile((toriginal_isfile(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pytrestore_isfile!scs�tj_dS(N(R
Rtisdir((toriginal_isdir(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyt
restore_isdir$sstest1.pystest2.pys
not_a_test.pyttest_dirstest.foostest-not-a-module.pytanother_dirstest3.pystest4.pycs
�jd�S(Ni(tpop(R(t
path_lists(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyt<lambda>*tcSs
|jd�S(Ntdir(tendswith(R((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR-scSs|jd�od|kS(NRR(R(R((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR2scSs|dS(Ns module((R((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR8RcSs|dS(Ns tests((tmodule((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR9Rs/foostest*.pyttest1ttest2s
 module teststtest3ttest4stest_dir.%s(R!R"(R#R$(RRR
RRRRt
addCleanupt_get_module_from_nametloadTestsFromModuletabspathRtlistt_find_teststextendR(R	R
RRRRRt	top_leveltsuiteRtexpected((RRRRsA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyttest_find_testss8	
	
	
		cs�tj�}tj��fd�}tjj��fd�}tjj��fd�}dddg��gggg��fd�t_�j|�d�tj_�j|��fd	�tj_�j|�d
tfd��Y��fd�|_	�fd
�}||_
d|_t|j
dd��}�j|dddg��j�jddg��j�j|dddfg�dS(Ncs
�t_dS(N(R
R((R(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRIscs�tj_dS(N(R
RR((R(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRLscs�tj_dS(N(R
RR((R(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyROsta_directoryttest_directoryttest_directory2cs
�jd�S(Ni(R(R(R(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRTRcSstS(N(tTrue(R((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRWRcstjj|��kS(N(R
Rtbasename(R(tdirectories(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRZRtModulecBs,eZgZgZd�Zd�ZdZRS(csP|�_�jj|�tjj|�dkrL�fd�}|�_ndS(NR1cs�jj|||f�dS(Nt
load_tests(tload_tests_argstappend(R
tteststpattern(R	(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR7es(RtpathsR9R
R4R7(R	RR7((R	sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyt__init__as
	cSs|j|jkS(N(R(R	tother((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyt__eq__jsN(t__name__t
__module__R<R8R=R?tNonet__hash__(((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR6]s
			cs
�|�S(N((R(R6(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRpRcs#|r�jd��n|jdS(Ns+use_load_tests should be False for packagess
 module tests(tfailureExceptionR(R tuse_load_tests(R	(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR'qss/foostest*R7s
 module tests(RRR
RRRRR%tobjectR&R'RR)R*RR<R8(R	R
RRRR'R-((R6R5RRRRR	sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyttest_find_tests_with_packageEs4	


			c
s�tj�}tjj�tjj��fd�}d�tj_|j|�tj��fd�}|j|�tjjtjj	d��}|j
t��|jddd�WdQX|j
|j|�|j|tj�d�tj_d�tj_�fd	�}|j|�g��fd
�}||_t|_|jddd�}tjjd�}tjjd�}	|j
|d
�|j
|j|�|j
�|	dfg�|j|tj�dS(Ncs�tj_dS(N(R
RR((R(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR�scSstS(N(tFalse(R((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR�Rcs�tj(dS(N(tsysR((t
orig_sys_path(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pytrestore_path�ss/foos/foo/bart
top_level_dircSstS(N(R3(R((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR�RcSstS(N(R3(R((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR�Rcs�tj_dS(N(R
RR((R(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR�scs�j||f�dgS(NR:(R9(t	start_dirR;(t_find_tests_args(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR*�ss/foo/bar/bazR;s	['tests'](RRR
RRRR%RIR(tnormpathRtImportErrortdiscoverRRtassertInR*tstrt
suiteClass(
R	R
RRKt	full_pathRR*R-RLRM((RNRJRRsA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyt
test_discover�s:



		cs�tj�}tj�d�t_tjj�d�tj_tj����fd�}|j|�|jd�}|j	tj
�tj�|j|j�d�t
t
|�d�d}|jt��|j�WdQXdS(NcSsdgS(Nstest_this_does_not_exist.py((t_((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR�RcSstS(N(R3(RW((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR�Rcs#�tj_�t_�tj(dS(N(R
RRRRI((RRRJ(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pytrestore�s	t.ii(RRR
RRRRIR%RQRRtgetcwdRtcountTestCasesR)RRPttest_this_does_not_exist(R	R
RXR-ttest((RRRJsA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyt.test_discover_with_modules_that_fail_to_import�s	

cs�tjtj�}g��fd�}||_|jddg�|j�g�|jddddg�|j�ddg�dS(Ncs�j|�dS(N(R+(targv(targs(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pytdo_discovery�st	somethingRQtfootbar(RFt__new__RtTestProgramt
_do_discoveryt	parseArgsR(R	tprogramRa((R`sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyt$test_command_line_handling_parseArgs�s	c	s|dtfd��Y��fd�}tjtj�}||_d|_|j���|j	ddddg�WdQXdS(NtStopcBseZRS((R@RA(((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRk�scs
��dS(N(((Rk(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyt	usageExit�stonettwotthreetfour(
t	ExceptionRFReRRfRlRBt
testLoaderRRg(R	RlRi((RksA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyt:test_command_line_handling_do_discovery_too_many_arguments�s		cCs^tjtj�}dtfd��Y}|�|_|jdg�|j|jdg�dS(NtLoadercBseZgZd�ZRS(cSs|jj|||f�dS(NR:(R`R9(R	RMR;RL((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRQ�s(R@RAR`RQ(((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRt�ss-vRYstest*.py(RYstest*.pyN(	RFReRRfRrRgRR`RB(R	RiRt((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyt;test_command_line_handling_do_discovery_uses_default_loader�s
cCstjtj�}dtfd��Y}|jdgd|�|j|jd�|j|jd�|j|jdg�g|_tjtj�}|jdgd|�|j|jd�|j|jdg�g|_tjtj�}|jgd|�|j|jd�|j|jdg�g|_tjtj�}|jd	gd|�|j|jd�|j|jdg�g|_tjtj�}|jd	d
gd|�|j|jd�|j|jdg�g|_tjtj�}|jd	d
dgd|�|j|jd�|j|jdg�g|_tjtj�}|jdd	gd|�|j|jd�|j|jdg�g|_tjtj�}|jd
d	gd|�|j|jd�|j|jdg�g|_tjtj�}|jdd	gd|�|j|jd�|j|jdg�|j
|j�|j
|j�g|_tjtj�}|jdd
dd	dddgd|�|j|jd�|j|jdg�|j|jd�|j
|j�|j
|j�dS(NRtcBseZgZd�ZRS(cSs|jj|||f�dS(NR:(R`R9(R	RMR;RL((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRQ�s(R@RAR`RQ(((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRt�ss-viR:RYstest*.pys	--verbosetfishteggsthams-ss-ts-ps-fs-c(RYstest*.pyN(RYstest*.pyN(RYstest*.pyN(Rvstest*.pyN(RvRwN(RvRwRx(Rvstest*.pyN(RYstest*.pyRv(RYRvN(RvRwN(RFReRRfRgRt	verbosityR]R`RBtassertFalsetfailfastt
catchbreakt
assertTrue(R	RiRt((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyt4test_command_line_handling_do_discovery_calls_loader�sr									!cs�dtfd��Y}|tjd<tjjd��tj�tjj�tjj�����fd�}|j	|�d�}d�}d�}|t_|tj_|tj_�S(NR6cBseZdZRS(s
bar/foo.py(R@RAt__file__(((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR6?sRccsQ�t_�tj_�tj_tjd=�tjkrMtjj��ndS(NRc(R
RRRRRItmodulestremove((RURRR(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pytcleanupGs	
cSsdgS(Nsfoo.py((RW((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRPscSstS(N(R3(RW((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRRscSstS(N(R3(RW((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyRTs(
RFRIR�R
RR(RRRR%(R	R6R�RRR((RURRRsA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pytsetup_module_clash>s
	
				cCs�|j�}tj�}tjjd�}tjjd�}tjd||f�}|jt	d||j
dddd�|jtjd|�dS(	NRdRcsZ'foo' module incorrectly imported from %r. Expected %r. Is this module globally installed?s^%s$RMR;sfoo.pyi(
R�RRR
RR(tretescapetassertRaisesRegexpRPRQRRI(R	RUR
tmod_dirtexpected_dirtmsg((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyttest_detect_module_clash[s	
cs�|j�}tjj�tjjd��tjjd���fd�}|j|���fd�}|tj_tj�}|jdddd�dS(NRdRccs�tj_dS(N(R
Rtrealpath((toriginal_realpath(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR�qscs2|tjj�d�kr.tjj�d�S|S(Nsfoo.py(R
Rtjoin(R(R�R�(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR�usRMR;sfoo.py(	R�R
RR�R(R%RRRQ(R	RUR�R�R
((R�R�R�sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyttest_module_symlink_okis
cs�tj�}�g�tjjtjjtjj���t�_	���fd�}||_
|jd�}�j�j	��j
|j��dS(Ncst�_�j|���S(N(R3twasRunR(RMR;(texpectedPathR	R:(sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR*�s	s
unittest.test(RRR
RR(tdirnameR]RRHR�R*RQR}Rt_tests(R	R
R*R-((R�R	R:sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyttest_discovery_from_dotted_path}s	$		(R@RARR/RGRVR^RjRsRuR~R�R�R�R�(((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyR	s		+	A	.				
	J			t__main__(	R
R�RIRt
unittest.testtTestCaseRR@tmain(((sA/opt/alt/python27/lib64/python2.7/unittest/test/test_discovery.pyt<module>s��