AlkantarClanX12

Your IP : 3.144.96.108


Current Path : /proc/thread-self/root/opt/alt/python33/lib64/python3.3/unittest/__pycache__/
Upload File :
Current File : //proc/thread-self/root/opt/alt/python33/lib64/python3.3/unittest/__pycache__/main.cpython-33.pyo

�
��f�(c@s�dZddlZddlZddlZddlmZmZddlmZdZ
dZdZdZ
d	Zd
Zdd�Zd
d�ZGdd�de�ZeZdS(uUnittest main programiNi(uloaderurunner(uinstallHandleru)  -f, --failfast   Stop on first failure
u7  -c, --catch      Catch control-C and display results
u=  -b, --buffer     Buffer stdout and stderr during test runs
u�Usage: %(progName)s [options] [tests]

Options:
  -h, --help       Show this message
  -v, --verbose    Verbose output
  -q, --quiet      Minimal output
%(failfast)s%(catchbreak)s%(buffer)s
Examples:
  %(progName)s test_module               - run tests from test_module
  %(progName)s module.TestClass          - run tests from module.TestClass
  %(progName)s module.Class.test_method  - run specified test method

[tests] can be a list of any number of test modules, classes and test
methods.

Alternative Usage: %(progName)s discover [options]

Options:
  -v, --verbose    Verbose output
%(failfast)s%(catchbreak)s%(buffer)s  -s directory     Directory to start discovery ('.' default)
  -p pattern       Pattern to match test files ('test*.py' default)
  -t directory     Top level directory of project (default to
                   start directory)

For test discovery all test modules must be importable from the top
level directory of the project.
u1Usage: %(progName)s [options] [test] [...]

Options:
  -h, --help       Show this message
  -v, --verbose    Verbose output
  -q, --quiet      Minimal output
%(failfast)s%(catchbreak)s%(buffer)s
Examples:
  %(progName)s                               - run default set of tests
  %(progName)s MyTestSuite                   - run suite 'MyTestSuite'
  %(progName)s MyTestCase.testSomething      - run MyTestCase.testSomething
  %(progName)s MyTestCase                    - run all 'test*' test methods
                                               in MyTestCase
cCs�tjj|�r�|j�jd�r�tjj|�r�tjj|tj��}tjj|�sx|jtj	�r||S|}n|dd�j
dd�j
dd�S|S(Nu.pyiu\u.u/i����(uosupathuisfileuloweruendswithuisabsurelpathugetcwdu
startswithupardirureplace(unameurel_path((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyu
_convert_name=s'$	&u
_convert_namecCsdd�|D�S(NcSsg|]}t|��qS((u
_convert_name(u.0uname((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyu
<listcomp>Ns	u"_convert_names.<locals>.<listcomp>((unames((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyu_convert_namesMsu_convert_namesc
Bs�|EeZdZdZeZdZZZ	Z
Zddddej
dddddddd�Zddd�Zdd	�Zd
d�Zdd
�Zdd�Zdd�Zddd�Zdd�ZdS(uTestProgramuA command-line program that runs a set of tests; this is primarily
       for making test modules conveniently executable.
    u__main__ic
Cs"t|t�rZt|�|_xB|jd�dd�D]}t|j|�|_q8Wn	||_|dkr{tj}n||_	||_
|	|_||_|
|_
|dkr�tjr�d|_n	||_||_||_||_tjj|d�|_|j|�|j�dS(Nu.iudefaulti(u
isinstanceustru
__import__umoduleusplitugetattruNoneusysuargvuexitufailfastu
catchbreaku	verbosityubufferuwarnoptionsuwarningsudefaultTestu
testRunneru
testLoaderuosupathubasenameuprogNameu	parseArgsurunTests(
uselfumoduleudefaultTestuargvu
testRunneru
testLoaderuexitu	verbosityufailfastu
catchbreakubufferuwarningsupart((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyu__init__Zs* 										
uTestProgram.__init__cCs�|rt|�ni|jd6dd6dd6dd6}|jdkrTt|d<n|jdkrpt|d<n|jdkr�t|d<nt|j	|�t
jd�dS(NuprogNameuu
catchbreakufailfastubufferiF(uprintuprogNameufailfastuFalseuFAILFASTu
catchbreaku
CATCHBREAKubufferuBUFFEROUTPUTuUSAGEusysuexit(uselfumsguusage((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyu	usageExits




uTestProgram.usageExitcCs^t|�dkr(|dj�dksIt|�dkrd|jdkrd|j|dd��dS|j�}|j|dd��\}}|j|�t|�dkr�|jdkr�|j|dd��dSt|�dkr|jdkrd|_	nKt|�dkrAt
|�|_	tdkrPd|_qPn|jf|_	|j�dS(Niudiscoveriiu__main__(
ulenulowerumoduleuNoneu
_do_discoveryu
_getOptParseru
parse_argsu_setAttributesFromOptionsudefaultTestu	testNamesu_convert_namesu__name__ucreateTests(uselfuargvuparseruoptionsuargs((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyu	parseArgs�s$(!
!!uTestProgram.parseArgscCsL|jdkr*|jj|j�|_n|jj|j|j�|_dS(N(u	testNamesuNoneu
testLoaderuloadTestsFromModuleumoduleutestuloadTestsFromNames(uself((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyucreateTests�suTestProgram.createTestscCs&ddl}|j�}|j|_|jddddddddd	d
�|jdddd
ddddd	d
�|jdkr�|jddddddddd	d
�n|jdkr�|jddddddddd	d
�n|jdkr"|jddddddddd	d
�n|S(Niu-vu	--verboseudestuverboseudefaultuhelpuVerbose outputuactionu
store_trueu-qu--quietuquietuQuiet outputu-fu
--failfastufailfastuStop on first fail or erroru-cu--catchu
catchbreaku'Catch ctrl-C and display results so faru-bu--bufferubufferu%Buffer stdout and stderr during testsF(	uoptparseuOptionParseruprogNameuprogu
add_optionuFalseufailfastu
catchbreakubuffer(uselfuoptparseuparser((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyu
_getOptParser�s(




uTestProgram._getOptParsercCs�|jdkr|j|_n|jdkr<|j|_n|jdkrZ|j|_n|jrod|_n|jr�d|_ndS(Nii(ufailfastuNoneu
catchbreakubufferuverboseu	verbosityuquiet(uselfuoptions((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyu_setAttributesFromOptions�s		u%TestProgram._setAttributesFromOptionsc	Csj|jdddddddd�|jd	d
dddddd
�|jdddddddd�dS(Nu-su--start-directoryudestustartudefaultu.uhelpu*Directory to start discovery ('.' default)u-pu	--patternupatternutest*.pyu+Pattern to match tests ('test*.py' default)u-tu--top-level-directoryutopu<Top level directory of project (defaults to start directory)(u
add_optionuNone(uselfuparser((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyu_addDiscoveryOptions�su TestProgram._addDiscoveryOptionscs�|dkr!�fdd�}nd�j�_�j�}�j|�|j|�\}}t|�dkr~�j�nx-td|�D]\}}t|||�q�W�j	|�|j
}|j}	|j}
|�}|j
||	|
��_dS(	Ncs�jS(N(u
testLoader((uself(u2/opt/alt/python33/lib64/python3.3/unittest/main.pyu<lambda>�su+TestProgram._do_discovery.<locals>.<lambda>u%s discoveriustartupatternutop(ustartupatternutop(uNoneuprogNameu
_getOptParseru_addDiscoveryOptionsu
parse_argsulenu	usageExituzipusetattru_setAttributesFromOptionsustartupatternutopudiscoverutest(uselfuargvuLoaderuparseruoptionsuargsunameuvalueu	start_dirupatternu
top_level_diruloader((uselfu2/opt/alt/python33/lib64/python3.3/unittest/main.pyu
_do_discovery�s 


				uTestProgram._do_discoverycCs�|jrt�n|jdkr1tj|_nt|jt�r�y4|jd|jd|j	d|j
d|j�}Wq�tk
r�|j�}Yq�Xn	|j}|j
|j�|_|jr�tj|jj��ndS(Nu	verbosityufailfastubufferuwarnings(u
catchbreakuinstallHandleru
testRunneruNoneurunneruTextTestRunneru
isinstanceutypeu	verbosityufailfastubufferuwarningsu	TypeErrorurunutesturesultuexitusysu
wasSuccessful(uselfu
testRunner((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyurunTests�s 	
		
		uTestProgram.runTestsNT(u__name__u
__module__u__qualname__u__doc__uUSAGE_FROM_MODULEuUSAGEuNoneufailfastu
catchbreakubufferuprogNameuwarningsuloaderudefaultTestLoaderuTrueu__init__u	usageExitu	parseArgsucreateTestsu
_getOptParseru_setAttributesFromOptionsu_addDiscoveryOptionsu
_do_discoveryurunTests(u
__locals__((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyuTestProgramQs		"uTestProgramT(u__doc__usysuoptparseuosuuloaderurunnerusignalsuinstallHandleruTrueu
__unittestuFAILFASTu
CATCHBREAKuBUFFEROUTPUTu
USAGE_AS_MAINuUSAGE_FROM_MODULEu
_convert_nameu_convert_namesuobjectuTestProgramumain(((u2/opt/alt/python33/lib64/python3.3/unittest/main.pyu<module>s�