HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/unittest/test/__pycache__/test_loader.cpython-37.pyc
B

"��gO��@sVddlZddlZddlZddlZddlZdd�ZGdd�dej�ZedkrRe�	�dS)�Ncs�fdd�}|S)NcsTg}ttd|���}z
�||�S||krHyt`WqNtk
rDYqNXn|t_XdS)N�__warningregistry__)�getattr�warnings�copyr�AttributeError)�argsZkws�missingZsaved)�func��5/usr/local/lib/python3.7/unittest/test/test_loader.py�wrappers
z warningregistry.<locals>.wrapperr
)r	rr
)r	r�warningregistry
s
r
c@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zedd��Z
edd��Zedd��Zedd��Zedd��Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd1d2�Zd3d4�Zd5d6�Zd7d8�Zd9d:�Z d;d<�Z!d=d>�Z"d?d@�Z#dAdB�Z$dCdD�Z%dEdF�Z&dGdH�Z'dIdJ�Z(dKdL�Z)dMdN�Z*dOdP�Z+dQdR�Z,dSdT�Z-dUdV�Z.dWdX�Z/dYdZ�Z0d[d\�Z1d]d^�Z2d_d`�Z3dadb�Z4dcdd�Z5dedf�Z6dgdh�Z7didj�Z8dkdl�Z9dmdn�Z:dodp�Z;dqdr�Z<dsdt�Z=dudv�Z>dwdx�Z?dydz�Z@d{d|�ZAd}d~�ZBdd��ZCd�d��ZDd�d��ZEd�d��ZFd�d��ZGd�d��ZHd�d��ZId�d��ZJd�d��ZKd�d��ZLd�d��ZMd�d��ZNd�d��ZOd�d��ZPd�d��ZQd�d��ZRd�d��ZSd�d��ZTd�d��ZUd�d��ZVd�S)��Test_TestLoadercCst��}|�g|j�dS)N)�unittest�
TestLoader�assertEqual�errors)�self�loaderr
r
r�
test___init__ szTest_TestLoader.test___init__cCsFGdd�dtj�}t�|d�|d�g�}t��}|�|�|�|�dS)Nc@s$eZdZdd�Zdd�Zdd�ZdS)z7Test_TestLoader.test_loadTestsFromTestCase.<locals>.FoocSsdS)Nr
)rr
r
r�test_1+�z>Test_TestLoader.test_loadTestsFromTestCase.<locals>.Foo.test_1cSsdS)Nr
)rr
r
r�test_2,rz>Test_TestLoader.test_loadTestsFromTestCase.<locals>.Foo.test_2cSsdS)Nr
)rr
r
r�foo_bar-rz?Test_TestLoader.test_loadTestsFromTestCase.<locals>.Foo.foo_barN)�__name__�
__module__�__qualname__rrrr
r
r
r�Foo*srrr)r�TestCase�	TestSuiterr�loadTestsFromTestCase)rr�testsrr
r
r�test_loadTestsFromTestCase)sz*Test_TestLoader.test_loadTestsFromTestCasecCs8Gdd�dtj�}t��}t��}|�|�|�|�dS)Nc@seZdZdd�ZdS)zCTest_TestLoader.test_loadTestsFromTestCase__no_matches.<locals>.FoocSsdS)Nr
)rr
r
rr:rzKTest_TestLoader.test_loadTestsFromTestCase__no_matches.<locals>.Foo.foo_barN)rrrrr
r
r
rr9sr)rrrrrr )rrZempty_suiterr
r
r�&test_loadTestsFromTestCase__no_matches8sz6Test_TestLoader.test_loadTestsFromTestCase__no_matchescCsLGdd�dtj�}t��}y|�|�Wntk
r<YnX|�d�dS)Nc@seZdZdS)zTTest_TestLoader.test_loadTestsFromTestCase__TestSuite_subclass.<locals>.NotATestCaseN)rrrr
r
r
r�NotATestCaseKsr$zShould raise TypeError)rrrr �	TypeError�fail)rr$rr
r
r�.test_loadTestsFromTestCase__TestSuite_subclassJsz>Test_TestLoader.test_loadTestsFromTestCase__TestSuite_subclasscCs^Gdd�dtj�}t��}|�d�|j��|�|�}|�||j�|�	t
|�|d�g�dS)Nc@seZdZdd�ZdS)zLTest_TestLoader.test_loadTestsFromTestCase__default_method_name.<locals>.FoocSsdS)Nr
)rr
r
r�runTest^szTTest_TestLoader.test_loadTestsFromTestCase__default_method_name.<locals>.Foo.runTestN)rrrr(r
r
r
rr]srr()rrrZassertFalse�
startswith�testMethodPrefixr �assertIsInstance�
suiteClassr�list)rrr�suiter
r
r�/test_loadTestsFromTestCase__default_method_name\s
z?Test_TestLoader.test_loadTestsFromTestCase__default_method_namecCsht�d�}Gdd�dtj�}||_t��}|�|�}|�||j�|�|d�g�g}|�	t
|�|�dS)N�mc@seZdZdd�ZdS)zOTest_TestLoader.test_loadTestsFromModule__TestCase_subclass.<locals>.MyTestCasecSsdS)Nr
)rr
r
r�testsszTTest_TestLoader.test_loadTestsFromModule__TestCase_subclass.<locals>.MyTestCase.testN)rrrr1r
r
r
r�
MyTestCasersr2r1)�types�
ModuleTyperr�
testcase_1r�loadTestsFromModuler+r,rr-)rr0r2rr.�expectedr
r
r�+test_loadTestsFromModule__TestCase_subclassps

z;Test_TestLoader.test_loadTestsFromModule__TestCase_subclasscCs>t�d�}t��}|�|�}|�||j�|�t|�g�dS)Nr0)	r3r4rrr6r+r,rr-)rr0rr.r
r
r�/test_loadTestsFromModule__no_TestCase_instances�s


z?Test_TestLoader.test_loadTestsFromModule__no_TestCase_instancescCs\t�d�}Gdd�dtj�}||_t��}|�|�}|�||j�|�	t
|�|��g�dS)Nr0c@seZdZdS)zOTest_TestLoader.test_loadTestsFromModule__no_TestCase_tests.<locals>.MyTestCaseN)rrrr
r
r
rr2�sr2)r3r4rrr5rr6r+r,rr-)rr0r2rr.r
r
r�+test_loadTestsFromModule__no_TestCase_tests�s

z;Test_TestLoader.test_loadTestsFromModule__no_TestCase_testscs^Gdd�dtj��G�fdd�dt�}t��}|�|�}t��d�g�g}|�t|�|�dS)Nc@seZdZdd�ZdS)zJTest_TestLoader.test_loadTestsFromModule__not_a_module.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1�szOTest_TestLoader.test_loadTestsFromModule__not_a_module.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2�sr2cseZdZ�ZdS)zJTest_TestLoader.test_loadTestsFromModule__not_a_module.<locals>.NotAModuleN)rrrrr
)r2r
r�
NotAModule�sr;r1)rr�objectrr6rrr-)rr;rr.�	referencer
)r2r�&test_loadTestsFromModule__not_a_module�s
z6Test_TestLoader.test_loadTestsFromModule__not_a_modulec	s�t�d�}Gdd�dtj�}||_g���fdd�}||_t��}|�|�}��|tj	���
�||dg�g�tjdd��t�
d�|j|dd	�}WdQRX��
�||dg�dS)
Nr0c@seZdZdd�ZdS)zHTest_TestLoader.test_loadTestsFromModule__load_tests.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1�szMTest_TestLoader.test_loadTestsFromModule__load_tests.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2�sr2cs"��|tj���|||f�|S)N)r+rr�extend)rr!�pattern)�load_tests_argsrr
r�
load_tests�szHTest_TestLoader.test_loadTestsFromModule__load_tests.<locals>.load_testsF)�record�ignore)�use_load_tests)r3r4rrr5rBrr6r+rrr�catch_warnings�simplefilter)rr0r2rBrr.r
)rArr�$test_loadTestsFromModule__load_tests�s


z4Test_TestLoader.test_loadTestsFromModule__load_testsc	s�t�d�}Gdd�dtj�}||_g���fdd�}||_t��}tjdd��}t�	d�|�
|d	�}WdQRX��|tj���
�||dg���|d
jt���
t|d
j�d�dS)Nr0c@seZdZdd�ZdS)zbTest_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_positional.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1�szgTest_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_positional.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2�sr2cs"��|tj���|||f�|S)N)r+rrr?)rr!r@)rArr
rrB�szbTest_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_positional.<locals>.load_testsT)rC�alwaysF���z(use_load_tests is deprecated and ignored)r3r4rrr5rBrrrFrGr6r+rr�assertIs�category�DeprecationWarning�str�message)rr0r2rBr�wr.r
)rArr�>test_loadTestsFromModule__use_load_tests_deprecated_positional�s

zNTest_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_positionalc	s�t�d�}Gdd�dtj�}||_g���fdd�}||_t��}tjdd��}t�	d�|j
|d	d
�}WdQRX��|tj���
�||dg���|djt���
t|dj�d�dS)
Nr0c@seZdZdd�ZdS)z_Test_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_keyword.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1�szdTest_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_keyword.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2�sr2cs"��|tj���|||f�|S)N)r+rrr?)rr!r@)rArr
rrB�sz_Test_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_keyword.<locals>.load_testsT)rCrIF)rErJz(use_load_tests is deprecated and ignored)r3r4rrr5rBrrrFrGr6r+rrrKrLrMrNrO)rr0r2rBrrPr.r
)rArr�;test_loadTestsFromModule__use_load_tests_deprecated_keyword�s

zKTest_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_keywordc
s�t�d�}Gdd�dtj�}||_g���fdd�}||_t��}��t��6}t	j
dd��}t	�d�|�|d	d
�WdQRXWdQRX��
|djt���t|dj�d���t|j�t���t|j�d
�dS)Nr0c@seZdZdd�ZdS)zVTest_TestLoader.test_loadTestsFromModule__too_many_positional_args.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1sz[Test_TestLoader.test_loadTestsFromModule__too_many_positional_args.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2
sr2cs"��|tj���|||f�|S)N)r+rrr?)rr!r@)rArr
rrBszVTest_TestLoader.test_loadTestsFromModule__too_many_positional_args.<locals>.load_testsT)rCrIFztestme.*rJz(use_load_tests is deprecated and ignoredzBloadTestsFromModule() takes 1 positional argument but 3 were given)r3r4rrr5rBr�assertRaisesr%rrFrGr6rKrLrMrrNrO�type�	exception)rr0r2rBr�cmrPr
)rArr�2test_loadTestsFromModule__too_many_positional_argss$

"zBTest_TestLoader.test_loadTestsFromModule__too_many_positional_argsc
s�t�d�}Gdd�dtj�}||_g���fdd�}||_t��}t���8t�	d���
t��}|j|dddd	�WdQRXWdQRX��
t|j�t���
t|j�d
�dS)Nr0c@seZdZdd�ZdS)z^Test_TestLoader.test_loadTestsFromModule__use_load_tests_other_bad_keyword.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1(szcTest_TestLoader.test_loadTestsFromModule__use_load_tests_other_bad_keyword.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2'sr2cs"��|tj���|||f�|S)N)r+rrr?)rr!r@)rArr
rrB-sz^Test_TestLoader.test_loadTestsFromModule__use_load_tests_other_bad_keyword.<locals>.load_testsrDFT)rEZvery_badZworsezCloadTestsFromModule() got an unexpected keyword argument 'very_bad')r3r4rrr5rBrrrFrGrSr%r6rrTrUrN)rr0r2rBrrVr
)rArr�:test_loadTestsFromModule__use_load_tests_other_bad_keyword$s 


"zJTest_TestLoader.test_loadTestsFromModule__use_load_tests_other_bad_keywordcstt�d�}Gdd�dtj�}||_g���fdd�}||_t��}|j|dd�}��|tj	���
�||dg�dS)Nr0c@seZdZdd�ZdS)zETest_TestLoader.test_loadTestsFromModule__pattern.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1BszJTest_TestLoader.test_loadTestsFromModule__pattern.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2Asr2cs"��|tj���|||f�|S)N)r+rrr?)rr!r@)rArr
rrBGszETest_TestLoader.test_loadTestsFromModule__pattern.<locals>.load_testsztestme.*)r@)r3r4rrr5rBrr6r+rr)rr0r2rBrr.r
)rArr�!test_loadTestsFromModule__pattern?s
z1Test_TestLoader.test_loadTestsFromModule__patterncCs�t�d�}dd�}||_t��}|�|�}|�|tj�|�|�	�d�|�
g|j�|�dt|j��|jd}|�
d|kd|�t|�d}|�td|j�dS)	Nr0cSstd��dS)Nzsome failure)r%)rr!r@r
r
rrBUszOTest_TestLoader.test_loadTestsFromModule__faulty_load_tests.<locals>.load_tests�rzFailed to call load_tests:zmissing error string in %rzsome failure)r3r4rBrrr6r+rr�countTestCases�assertNotEqualr�lenZ
assertTruer-�assertRaisesRegexr%r0)rr0rBrr.�errorr1r
r
r�+test_loadTestsFromModule__faulty_load_testsRs



z;Test_TestLoader.test_loadTestsFromModule__faulty_load_testsc
CsXt��}y|�d�Wn2tk
rH}z|�t|�d�Wdd}~XYnX|�d�dS)N�zEmpty module namez7TestLoader.loadTestsFromName failed to raise ValueError)rr�loadTestsFromName�
ValueErrorrrNr&)rr�er
r
r�"test_loadTestsFromName__empty_namets"z2Test_TestLoader.test_loadTestsFromName__empty_namecCsTt��}|�d�}|�||�\}}d}d}|�||d|�|�t|t|d��dS)Nz	abc () //z'Failed to import test module: abc () //z)Failed to import test module: abc \(\) //zmissing error string in %r)rrrb�check_deferred_error�assertInr^�ImportErrorr)rrr.r_r1r7�expected_regexr
r
r�&test_loadTestsFromName__malformed_name�s

z6Test_TestLoader.test_loadTestsFromName__malformed_namecCsLt��}|�d�}d}|�||�\}}|�||d|�|�t||j�dS)N�sdasfasfasdfzNo module named 'sdasfasfasdf'zmissing error string in %r)rrrbrfrgr^rhrk)rrr.r7r_r1r
r
r�+test_loadTestsFromName__unknown_module_name�s

z;Test_TestLoader.test_loadTestsFromName__unknown_module_namecCsLt��}|�d�}d}|�||�\}}|�||d|�|�t||j�dS)Nzunittest.loader.sdasfasfasdfz8module 'unittest.loader' has no attribute 'sdasfasfasdf'zmissing error string in %r)rrrbrfrgr^rrk)rrr.r7r_r1r
r
r�3test_loadTestsFromName__unknown_attr_name_on_module�s

zCTest_TestLoader.test_loadTestsFromName__unknown_attr_name_on_modulecCsLt��}|�d�}d}|�||�\}}|�||d|�|�t||j�dS)Nzunittest.sdasfasfasdfz'No module named 'unittest.sdasfasfasdf'zmissing error string in %r)rrrbrfrgr^rhrk)rrr.r7r_r1r
r
r�4test_loadTestsFromName__unknown_attr_name_on_package�s

zDTest_TestLoader.test_loadTestsFromName__unknown_attr_name_on_packagecCsNt��}|�dt�}d}|�||�\}}|�||d|�|�t||j�dS)Nrkz1module 'unittest' has no attribute 'sdasfasfasdf'zmissing error string in %r)rrrbrfrgr^rrk)rrr.r7r_r1r
r
r�-test_loadTestsFromName__relative_unknown_name�s
z=Test_TestLoader.test_loadTestsFromName__relative_unknown_namecCsRt��}|�dt�}|�||�\}}d}|�||d|�|�t|t|d��dS)Nrazhas no attribute ''zmissing error string in %r)rrrbrfrgr^rr)rrr.r_r1r7r
r
r�+test_loadTestsFromName__relative_empty_name�s
z;Test_TestLoader.test_loadTestsFromName__relative_empty_namecCsVt��}|�dt�}|�||�\}}d}d}|�||d|�|�t|t|d��dS)Nz	abc () //z.module 'unittest' has no attribute 'abc () //'z0module 'unittest' has no attribute 'abc \(\) //'zmissing error string in %r)rrrbrfrgr^rr)rrr.r_r1r7rir
r
r�/test_loadTestsFromName__relative_malformed_name�s
z?Test_TestLoader.test_loadTestsFromName__relative_malformed_namecsXGdd�dtj��G�fdd�dt�}t��}|�d|�}�d�g}|�t|�|�dS)Nc@seZdZdd�ZdS)zQTest_TestLoader.test_loadTestsFromName__relative_not_a_module.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1szVTest_TestLoader.test_loadTestsFromName__relative_not_a_module.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2sr2cseZdZ�ZdS)zQTest_TestLoader.test_loadTestsFromName__relative_not_a_module.<locals>.NotAModuleN)rrrrr
)r2r
rr;sr;rr1)rrr<rrbrr-)rr;rr.r=r
)r2r�-test_loadTestsFromName__relative_not_a_module
s
z=Test_TestLoader.test_loadTestsFromName__relative_not_a_modulecCsNt�d�}t�|_t��}y|�d|�Wntk
r>YnX|�d�dS)Nr0r5zShould have raised TypeError)	r3r4r<r5rrrbr%r&)rr0rr
r
r�+test_loadTestsFromName__relative_bad_objects
z;Test_TestLoader.test_loadTestsFromName__relative_bad_objectcCs^t�d�}Gdd�dtj�}||_t��}|�d|�}|�||j�|�	t
|�|d�g�dS)Nr0c@seZdZdd�ZdS)zVTest_TestLoader.test_loadTestsFromName__relative_TestCase_subclass.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr10sz[Test_TestLoader.test_loadTestsFromName__relative_TestCase_subclass.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2/sr2r5r1)r3r4rrr5rrbr+r,rr-)rr0r2rr.r
r
r�2test_loadTestsFromName__relative_TestCase_subclass-s
zBTest_TestLoader.test_loadTestsFromName__relative_TestCase_subclasscCsjt�d�}Gdd�dtj�}t�|d�g�|_t��}|�d|�}|�||j	�|�
t|�|d�g�dS)Nr0c@seZdZdd�ZdS)zNTest_TestLoader.test_loadTestsFromName__relative_TestSuite.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1@szSTest_TestLoader.test_loadTestsFromName__relative_TestSuite.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2?sr2r1�	testsuite)r3r4rrrrurrbr+r,rr-)rr0r2rr.r
r
r�*test_loadTestsFromName__relative_TestSuite=s
z:Test_TestLoader.test_loadTestsFromName__relative_TestSuitecCs^t�d�}Gdd�dtj�}||_t��}|�d|�}|�||j�|�	t
|�|d�g�dS)Nr0c@seZdZdd�ZdS)zOTest_TestLoader.test_loadTestsFromName__relative_testmethod.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1OszTTest_TestLoader.test_loadTestsFromName__relative_testmethod.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2Nsr2ztestcase_1.testr1)r3r4rrr5rrbr+r,rr-)rr0r2rr.r
r
r�+test_loadTestsFromName__relative_testmethodLs
z;Test_TestLoader.test_loadTestsFromName__relative_testmethodcCspt�d�}Gdd�dtj�}||_t��}|�d|�}d}|�||�\}}|�||d|�|�	t
||j�dS)Nr0c@seZdZdd�ZdS)zWTest_TestLoader.test_loadTestsFromName__relative_invalid_testmethod.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1dsz\Test_TestLoader.test_loadTestsFromName__relative_invalid_testmethod.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2csr2ztestcase_1.testfooz3type object 'MyTestCase' has no attribute 'testfoo'zmissing error string in %r)r3r4rrr5rrbrfrgr^r�testfoo)rr0r2rr.r7r_r1r
r
r�3test_loadTestsFromName__relative_invalid_testmethodas

zCTest_TestLoader.test_loadTestsFromName__relative_invalid_testmethodcstt�d�}t�dd���t�dd�����fdd�}||_t��}|�d|�}|�||j�|�	t
|���g�dS)Nr0cSsdS)Nr
r
r
r
r�<lambda>urzMTest_TestLoader.test_loadTestsFromName__callable__TestSuite.<locals>.<lambda>cSsdS)Nr
r
r
r
rrzvrcst���g�S)N)rrr
)r5�
testcase_2r
r�return_TestSuitewszUTest_TestLoader.test_loadTestsFromName__callable__TestSuite.<locals>.return_TestSuiter|)r3r4r�FunctionTestCaser|rrbr+r,rr-)rr0r|rr.r
)r5r{r�+test_loadTestsFromName__callable__TestSuitess
z;Test_TestLoader.test_loadTestsFromName__callable__TestSuitecsbt�d�}t�dd����fdd�}||_t��}|�d|�}|�||j�|�	t
|��g�dS)Nr0cSsdS)Nr
r
r
r
rrz�rzUTest_TestLoader.test_loadTestsFromName__callable__TestCase_instance.<locals>.<lambda>cs�S)Nr
r
)r5r
r�return_TestCase�sz\Test_TestLoader.test_loadTestsFromName__callable__TestCase_instance.<locals>.return_TestCaser)r3r4rr}rrrbr+r,rr-)rr0rrr.r
)r5r�3test_loadTestsFromName__callable__TestCase_instance�s
zCTest_TestLoader.test_loadTestsFromName__callable__TestCase_instancecszGdd�dtj�}t�d�}t�dd����fdd�}||_t��}||_|�d|�}|�	||j�|�
t|��g�dS)	Nc@seZdZdS)zjTest_TestLoader.test_loadTestsFromName__callable__TestCase_instance_ProperSuiteClass.<locals>.SubTestSuiteN)rrrr
r
r
r�SubTestSuite�sr�r0cSsdS)Nr
r
r
r
rrz�rzfTest_TestLoader.test_loadTestsFromName__callable__TestCase_instance_ProperSuiteClass.<locals>.<lambda>cs�S)Nr
r
)r5r
rr�szmTest_TestLoader.test_loadTestsFromName__callable__TestCase_instance_ProperSuiteClass.<locals>.return_TestCaser)rrr3r4r}rrr,rbr+rr-)rr�r0rrr.r
)r5r�Dtest_loadTestsFromName__callable__TestCase_instance_ProperSuiteClass�s
zTTest_TestLoader.test_loadTestsFromName__callable__TestCase_instance_ProperSuiteClasscCsvGdd�dtj�}t�d�}Gdd�dtj�}||_t��}||_|�d|�}|�	||j�|�
t|�|d�g�dS)Nc@seZdZdS)zbTest_TestLoader.test_loadTestsFromName__relative_testmethod_ProperSuiteClass.<locals>.SubTestSuiteN)rrrr
r
r
rr��sr�r0c@seZdZdd�ZdS)z`Test_TestLoader.test_loadTestsFromName__relative_testmethod_ProperSuiteClass.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1�szeTest_TestLoader.test_loadTestsFromName__relative_testmethod_ProperSuiteClass.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2�sr2ztestcase_1.testr1)rrr3r4rr5rr,rbr+rr-)rr�r0r2rr.r
r
r�<test_loadTestsFromName__relative_testmethod_ProperSuiteClass�s
zLTest_TestLoader.test_loadTestsFromName__relative_testmethod_ProperSuiteClasscCsTt�d�}dd�}||_t��}y|�d|�}Wntk
rDYnX|�d�dS)Nr0cSsdS)N�r
r
r
r
r�return_wrong�szRTest_TestLoader.test_loadTestsFromName__callable__wrong_type.<locals>.return_wrongr�z6TestLoader.loadTestsFromName failed to raise TypeError)r3r4r�rrrbr%r&)rr0r�rr.r
r
r�,test_loadTestsFromName__callable__wrong_type�s
z<Test_TestLoader.test_loadTestsFromName__callable__wrong_typecCsnd}tj�|d�t��}z:|�|�}|�||j�|�t	|�g�|�
|tj�Wd|tjkrhtj|=XdS)Nzunittest.test.dummy)�sys�modules�poprrrbr+r,rr-rg)r�module_namerr.r
r
r�)test_loadTestsFromName__module_not_loaded�s

z9Test_TestLoader.test_loadTestsFromName__module_not_loadedcCs\|�|tj�|�|��d�|�g|j�|�dt|j��|jd}t|�d}||fS)a)Helper function for checking that errors in loading are reported.

        :param loader: A loader with some errors.
        :param suite: A suite that should have a late bound error.
        :return: The first error message from the loader and the test object
            from the suite.
        rZr)	r+rrrr[r\rr]r-)rrr.r_r1r
r
rrf�s
z$Test_TestLoader.check_deferred_errorcCs4t��}|�g�}|�||j�|�t|�g�dS)N)rr�loadTestsFromNamesr+r,rr-)rrr.r
r
r�(test_loadTestsFromNames__empty_name_list�s
z8Test_TestLoader.test_loadTestsFromNames__empty_name_listcCs6t��}|�gt�}|�||j�|�t|�g�dS)N)rrr�r+r,rr-)rrr.r
r
r�1test_loadTestsFromNames__relative_empty_name_list	szATest_TestLoader.test_loadTestsFromNames__relative_empty_name_listc
CsZt��}y|�dg�Wn2tk
rJ}z|�t|�d�Wdd}~XYnX|�d�dS)NrazEmpty module namez8TestLoader.loadTestsFromNames failed to raise ValueError)rrr�rcrrNr&)rrrdr
r
r�#test_loadTestsFromNames__empty_names"z3Test_TestLoader.test_loadTestsFromNames__empty_namecCs^t��}|�dg�}|�|t|�d�\}}d}d}|�||d|�|�t|t|d��dS)Nz	abc () //rz'Failed to import test module: abc () //z)Failed to import test module: abc \(\) //zmissing error string in %r)	rrr�rfr-rgr^rhr)rrr.r_r1r7rir
r
r�'test_loadTestsFromNames__malformed_name&s
z7Test_TestLoader.test_loadTestsFromNames__malformed_namecCsVt��}|�dg�}|�|t|�d�\}}d}|�||d|�|�t||j�dS)Nrkrz*Failed to import test module: sdasfasfasdfzmissing error string in %r)	rrr�rfr-rgr^rhrk)rrr.r_r1r7r
r
r�,test_loadTestsFromNames__unknown_module_name:s
z<Test_TestLoader.test_loadTestsFromNames__unknown_module_namecCsXt��}|�ddg�}|�|t|�d�\}}d}|�||d|�|�t||j�dS)Nzunittest.loader.sdasfasfasdfzunittest.test.dummyrz8module 'unittest.loader' has no attribute 'sdasfasfasdf'zmissing error string in %r)	rrr�rfr-rgr^rrk)rrr.r_r1r7r
r
r�*test_loadTestsFromNames__unknown_attr_nameKs

z:Test_TestLoader.test_loadTestsFromNames__unknown_attr_namecCsXt��}|�dgt�}|�|t|�d�\}}d}|�||d|�|�t||j�dS)Nrkrz1module 'unittest' has no attribute 'sdasfasfasdf'zmissing error string in %r)	rrr�rfr-rgr^rrk)rrr.r_r1r7r
r
r�0test_loadTestsFromNames__unknown_name_relative_1`s
z@Test_TestLoader.test_loadTestsFromNames__unknown_name_relative_1cCsZt��}|�ddgt�}|�|t|�d�\}}d}|�||d|�|�t||j�dS)NrrkrZz1module 'unittest' has no attribute 'sdasfasfasdf'zmissing error string in %r)	rrr�rfr-rgr^rrk)rrr.r_r1r7r
r
r�0test_loadTestsFromNames__unknown_name_relative_2ts
z@Test_TestLoader.test_loadTestsFromNames__unknown_name_relative_2cCs\t��}|�dgt�}|�|t|�d�\}}d}|�||d|�|�t|t|d��dS)Nrarzhas no attribute ''zmissing error string in %r)	rrr�rfr-rgr^rr)rrr.r_r1r7r
r
r�,test_loadTestsFromNames__relative_empty_name�s
z<Test_TestLoader.test_loadTestsFromNames__relative_empty_namecCs`t��}|�dgt�}|�|t|�d�\}}d}d}|�||d|�|�t|t|d��dS)Nz	abc () //rz.module 'unittest' has no attribute 'abc () //'z0module 'unittest' has no attribute 'abc \(\) //'zmissing error string in %r)	rrr�rfr-rgr^rr)rrr.r_r1r7rir
r
r�0test_loadTestsFromNames__relative_malformed_name�s
z@Test_TestLoader.test_loadTestsFromNames__relative_malformed_namecsbGdd�dtj��G�fdd�dt�}t��}|�dg|�}t��d�g�g}|�t|�|�dS)Nc@seZdZdd�ZdS)zRTest_TestLoader.test_loadTestsFromNames__relative_not_a_module.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1�szWTest_TestLoader.test_loadTestsFromNames__relative_not_a_module.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2�sr2cseZdZ�ZdS)zRTest_TestLoader.test_loadTestsFromNames__relative_not_a_module.<locals>.NotAModuleN)rrrrr
)r2r
rr;�sr;rr1)rrr<rr�rrr-)rr;rr.r=r
)r2r�.test_loadTestsFromNames__relative_not_a_module�sz>Test_TestLoader.test_loadTestsFromNames__relative_not_a_modulecCsPt�d�}t�|_t��}y|�dg|�Wntk
r@YnX|�d�dS)Nr0r5zShould have raised TypeError)	r3r4r<r5rrr�r%r&)rr0rr
r
r�,test_loadTestsFromNames__relative_bad_object�s
z<Test_TestLoader.test_loadTestsFromNames__relative_bad_objectcCslt�d�}Gdd�dtj�}||_t��}|�dg|�}|�||j�|�|d�g�}|�	t
|�|g�dS)Nr0c@seZdZdd�ZdS)zWTest_TestLoader.test_loadTestsFromNames__relative_TestCase_subclass.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1�sz\Test_TestLoader.test_loadTestsFromNames__relative_TestCase_subclass.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2�sr2r5r1)r3r4rrr5rr�r+r,rr-)rr0r2rr.r7r
r
r�3test_loadTestsFromNames__relative_TestCase_subclass�s
zCTest_TestLoader.test_loadTestsFromNames__relative_TestCase_subclasscCsjt�d�}Gdd�dtj�}t�|d�g�|_t��}|�dg|�}|�||j	�|�
t|�|jg�dS)Nr0c@seZdZdd�ZdS)zOTest_TestLoader.test_loadTestsFromNames__relative_TestSuite.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1�szTTest_TestLoader.test_loadTestsFromNames__relative_TestSuite.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2�sr2r1ru)r3r4rrrrurr�r+r,rr-)rr0r2rr.r
r
r�+test_loadTestsFromNames__relative_TestSuite�s
z;Test_TestLoader.test_loadTestsFromNames__relative_TestSuitecCslt�d�}Gdd�dtj�}||_t��}|�dg|�}|�||j�t�	|d�g�}|�
t|�|g�dS)Nr0c@seZdZdd�ZdS)zPTest_TestLoader.test_loadTestsFromNames__relative_testmethod.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1�szUTest_TestLoader.test_loadTestsFromNames__relative_testmethod.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2�sr2ztestcase_1.testr1)r3r4rrr5rr�r+r,rrr-)rr0r2rr.�	ref_suiter
r
r�,test_loadTestsFromNames__relative_testmethod�s
z<Test_TestLoader.test_loadTestsFromNames__relative_testmethodcCslt�d�}Gdd�dtj�}||_t��}|�dg|�}|�||j�t�	|d�g�}|�
t|�|g�dS)Nr0c@seZdZdd�ZdS)zdTest_TestLoader.test_loadTestsFromName__function_with_different_name_than_method.<locals>.MyTestCasecSsdS)NrZr
r
r
r
rrzrzmTest_TestLoader.test_loadTestsFromName__function_with_different_name_than_method.<locals>.MyTestCase.<lambda>N)rrrr1r
r
r
rr2sr2ztestcase_1.testr1)r3r4rrr5rr�r+r,rrr-)rr0r2rr.r�r
r
r�@test_loadTestsFromName__function_with_different_name_than_methods
zPTest_TestLoader.test_loadTestsFromName__function_with_different_name_than_methodcCszt�d�}Gdd�dtj�}||_t��}|�dg|�}|�|t|�d�\}}d}|�	||d|�|�
t||j�dS)Nr0c@seZdZdd�ZdS)zXTest_TestLoader.test_loadTestsFromNames__relative_invalid_testmethod.<locals>.MyTestCasecSsdS)Nr
)rr
r
rr1sz]Test_TestLoader.test_loadTestsFromNames__relative_invalid_testmethod.<locals>.MyTestCase.testN)rrrr1r
r
r
rr2sr2ztestcase_1.testfoorz3type object 'MyTestCase' has no attribute 'testfoo'zmissing error string in %r)
r3r4rrr5rr�rfr-rgr^rrx)rr0r2rr.r_r1r7r
r
r�4test_loadTestsFromNames__relative_invalid_testmethods

zDTest_TestLoader.test_loadTestsFromNames__relative_invalid_testmethodcs�t�d�}t�dd���t�dd�����fdd�}||_t��}|�dg|�}|�||j�t�	��g�}|�
t|�|g�dS)Nr0cSsdS)Nr
r
r
r
rrz+rzNTest_TestLoader.test_loadTestsFromNames__callable__TestSuite.<locals>.<lambda>cSsdS)Nr
r
r
r
rrz,rcst���g�S)N)rrr
)r5r{r
rr|-szVTest_TestLoader.test_loadTestsFromNames__callable__TestSuite.<locals>.return_TestSuiter|)r3r4rr}r|rr�r+r,rrr-)rr0r|rr.r7r
)r5r{r�,test_loadTestsFromNames__callable__TestSuite)s
z<Test_TestLoader.test_loadTestsFromNames__callable__TestSuitecspt�d�}t�dd����fdd�}||_t��}|�dg|�}|�||j�t�	�g�}|�
t|�|g�dS)Nr0cSsdS)Nr
r
r
r
rrz<rzVTest_TestLoader.test_loadTestsFromNames__callable__TestCase_instance.<locals>.<lambda>cs�S)Nr
r
)r5r
rr=sz]Test_TestLoader.test_loadTestsFromNames__callable__TestCase_instance.<locals>.return_TestCaser)r3r4rr}rrr�r+r,rrr-)rr0rrr.r�r
)r5r�4test_loadTestsFromNames__callable__TestCase_instance:s
zDTest_TestLoader.test_loadTestsFromNames__callable__TestCase_instancecs�t�d�}Gdd�dtj�}|d��G�fdd�dtj�}||_t��}|�dg|�}|�||j�t�	�g�}|�
t|�|g�dS)Nr0c@seZdZdd�ZdS)zSTest_TestLoader.test_loadTestsFromNames__callable__call_staticmethod.<locals>.Test1cSsdS)Nr
)rr
r
rr1OszXTest_TestLoader.test_loadTestsFromNames__callable__call_staticmethod.<locals>.Test1.testN)rrrr1r
r
r
r�Test1Nsr�r1cseZdZe�fdd��ZdS)zQTest_TestLoader.test_loadTestsFromNames__callable__call_staticmethod.<locals>.Foocs�S)Nr
r
)r5r
r�fooTszUTest_TestLoader.test_loadTestsFromNames__callable__call_staticmethod.<locals>.Foo.fooN)rrr�staticmethodr�r
)r5r
rrSsrzFoo.foo)r3r4rrrrr�r+r,rrr-)rr0r�rrr.r�r
)r5r�4test_loadTestsFromNames__callable__call_staticmethodLs
zDTest_TestLoader.test_loadTestsFromNames__callable__call_staticmethodcCsVt�d�}dd�}||_t��}y|�dg|�}Wntk
rFYnX|�d�dS)Nr0cSsdS)Nr�r
r
r
r
rr�fszSTest_TestLoader.test_loadTestsFromNames__callable__wrong_type.<locals>.return_wrongr�z7TestLoader.loadTestsFromNames failed to raise TypeError)r3r4r�rrr�r%r&)rr0r�rr.r
r
r�-test_loadTestsFromNames__callable__wrong_typeds
z=Test_TestLoader.test_loadTestsFromNames__callable__wrong_typecCsvd}tj�|d�t��}zB|�|g�}|�||j�|�t	|�t�
�g�|�|tj�Wd|tjkrptj|=XdS)Nzunittest.test.dummy)r�r�r�rrr�r+r,rr-rrg)rr�rr.r
r
r�*test_loadTestsFromNames__module_not_loadedts
z:Test_TestLoader.test_loadTestsFromNames__module_not_loadedcCs4Gdd�dtj�}t��}|�|�|�ddg�dS)Nc@s$eZdZdd�Zdd�Zdd�ZdS)z3Test_TestLoader.test_getTestCaseNames.<locals>.TestcSsdS)Nr
)rr
r
rr�rz:Test_TestLoader.test_getTestCaseNames.<locals>.Test.test_1cSsdS)Nr
)rr
r
rr�rz:Test_TestLoader.test_getTestCaseNames.<locals>.Test.test_2cSsdS)Nr
)rr
r
r�foobar�rz:Test_TestLoader.test_getTestCaseNames.<locals>.Test.foobarN)rrrrrr�r
r
r
r�Test�sr�rr)rrrr�getTestCaseNames)rr�rr
r
r�test_getTestCaseNames�sz%Test_TestLoader.test_getTestCaseNamescCs0Gdd�dtj�}t��}|�|�|�g�dS)Nc@seZdZdd�ZdS)z=Test_TestLoader.test_getTestCaseNames__no_tests.<locals>.TestcSsdS)Nr
)rr
r
rr��rzDTest_TestLoader.test_getTestCaseNames__no_tests.<locals>.Test.foobarN)rrrr�r
r
r
rr��sr�)rrrrr�)rr�rr
r
r�test_getTestCaseNames__no_tests�sz/Test_TestLoader.test_getTestCaseNames__no_testscCs4Gdd�dt�}t��}|�|�}|�|dg�dS)Nc@seZdZdd�ZdS)zFTest_TestLoader.test_getTestCaseNames__not_a_TestCase.<locals>.BadCasecSsdS)Nr
)rr
r
r�test_foo�szOTest_TestLoader.test_getTestCaseNames__not_a_TestCase.<locals>.BadCase.test_fooN)rrrr�r
r
r
r�BadCase�sr�r�)�intrrr�r)rr�r�namesr
r
r�%test_getTestCaseNames__not_a_TestCase�s
z5Test_TestLoader.test_getTestCaseNames__not_a_TestCasecCsJGdd�dtj�}Gdd�d|�}t��}dddg}|�|�|�|�dS)Nc@s$eZdZdd�Zdd�Zdd�ZdS)zATest_TestLoader.test_getTestCaseNames__inheritance.<locals>.TestPcSsdS)Nr
)rr
r
rr�rzHTest_TestLoader.test_getTestCaseNames__inheritance.<locals>.TestP.test_1cSsdS)Nr
)rr
r
rr�rzHTest_TestLoader.test_getTestCaseNames__inheritance.<locals>.TestP.test_2cSsdS)Nr
)rr
r
rr��rzHTest_TestLoader.test_getTestCaseNames__inheritance.<locals>.TestP.foobarN)rrrrrr�r
r
r
r�TestP�sr�c@seZdZdd�Zdd�ZdS)zATest_TestLoader.test_getTestCaseNames__inheritance.<locals>.TestCcSsdS)Nr
)rr
r
rr�rzHTest_TestLoader.test_getTestCaseNames__inheritance.<locals>.TestC.test_1cSsdS)Nr
)rr
r
r�test_3�rzHTest_TestLoader.test_getTestCaseNames__inheritance.<locals>.TestC.test_3N)rrrrr�r
r
r
r�TestC�sr�rrr�)rrrrr�)rr�r�rr�r
r
r�"test_getTestCaseNames__inheritance�s

z2Test_TestLoader.test_getTestCaseNames__inheritancecCs�Gdd�dtj�}t��}g|_|�|�|�g�dg|_|�|�|�dg�ddg|_|�|�|�ddg�dg|_|�|�|�ddg�dg|_|�|�|�g�dS)	Nc@s$eZdZdd�Zdd�Zdd�ZdS)zGTest_TestLoader.test_getTestCaseNames__testNamePatterns.<locals>.MyTestcSsdS)Nr
)rr
r
rr�rzNTest_TestLoader.test_getTestCaseNames__testNamePatterns.<locals>.MyTest.test_1cSsdS)Nr
)rr
r
rr�rzNTest_TestLoader.test_getTestCaseNames__testNamePatterns.<locals>.MyTest.test_2cSsdS)Nr
)rr
r
rr��rzNTest_TestLoader.test_getTestCaseNames__testNamePatterns.<locals>.MyTest.foobarN)rrrrrr�r
r
r
r�MyTest�sr�z*1rz*2rz*My*z*my*)rrr�testNamePatternsrr�)rr�rr
r
r�'test_getTestCaseNames__testNamePatterns�s
z7Test_TestLoader.test_getTestCaseNames__testNamePatternscshG�fdd�d��G�fdd�dtj�}t��}��|�|�dg�t��}g|_��|�|�g�dS)NcseZdZ�fdd�ZdS)zbTest_TestLoader.test_getTestCaseNames__testNamePatterns__attribute_access_regression.<locals>.Trapcs��d�dS)NzNon-test attribute accessed)r&)Zignored)rr
r�__get__�szjTest_TestLoader.test_getTestCaseNames__testNamePatterns__attribute_access_regression.<locals>.Trap.__get__N)rrrr�r
)rr
r�Trap�sr�cseZdZdd�Z��ZdS)zdTest_TestLoader.test_getTestCaseNames__testNamePatterns__attribute_access_regression.<locals>.MyTestcSsdS)Nr
)rr
r
rr�rzkTest_TestLoader.test_getTestCaseNames__testNamePatterns__attribute_access_regression.<locals>.MyTest.test_1N)rrrrr�r
)r�r
rr��sr�r)rrrrr�r�)rr�rr
)r�rr�Dtest_getTestCaseNames__testNamePatterns__attribute_access_regression�szTTest_TestLoader.test_getTestCaseNames__testNamePatterns__attribute_access_regressioncCstGdd�dtj�}t�|d�g�}t�|d�|d�g�}t��}d|_|�|�|�|�d|_|�|�|�|�dS)Nc@s$eZdZdd�Zdd�Zdd�ZdS)zITest_TestLoader.test_testMethodPrefix__loadTestsFromTestCase.<locals>.FoocSsdS)Nr
)rr
r
rr
rzPTest_TestLoader.test_testMethodPrefix__loadTestsFromTestCase.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rrrzPTest_TestLoader.test_testMethodPrefix__loadTestsFromTestCase.<locals>.Foo.test_2cSsdS)Nr
)rr
r
rrrzQTest_TestLoader.test_testMethodPrefix__loadTestsFromTestCase.<locals>.Foo.foo_barN)rrrrrrr
r
r
rrsrrrrr�r1)rrrrr*rr )rr�tests_1�tests_2rr
r
r�,test_testMethodPrefix__loadTestsFromTestCasesz<Test_TestLoader.test_testMethodPrefix__loadTestsFromTestCasecCs�t�d�}Gdd�dtj�}||_t�|d�g�g}t�|d�|d�g�g}t��}d|_|�t	|�
|��|�d|_|�t	|�
|��|�dS)	Nr0c@s$eZdZdd�Zdd�Zdd�ZdS)zGTest_TestLoader.test_testMethodPrefix__loadTestsFromModule.<locals>.FoocSsdS)Nr
)rr
r
rr#rzNTest_TestLoader.test_testMethodPrefix__loadTestsFromModule.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rr$rzNTest_TestLoader.test_testMethodPrefix__loadTestsFromModule.<locals>.Foo.test_2cSsdS)Nr
)rr
r
rr%rzOTest_TestLoader.test_testMethodPrefix__loadTestsFromModule.<locals>.Foo.foo_barN)rrrrrrr
r
r
rr"srrrrr�r1)r3r4rrrrrr*rr-r6)rr0rr�r�rr
r
r�*test_testMethodPrefix__loadTestsFromModule s
z:Test_TestLoader.test_testMethodPrefix__loadTestsFromModulecCs�t�d�}Gdd�dtj�}||_t�|d�g�}t�|d�|d�g�}t��}d|_|�|�	d|�|�d|_|�|�	d|�|�dS)	Nr0c@s$eZdZdd�Zdd�Zdd�ZdS)zETest_TestLoader.test_testMethodPrefix__loadTestsFromName.<locals>.FoocSsdS)Nr
)rr
r
rr:rzLTest_TestLoader.test_testMethodPrefix__loadTestsFromName.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rr;rzLTest_TestLoader.test_testMethodPrefix__loadTestsFromName.<locals>.Foo.test_2cSsdS)Nr
)rr
r
rr<rzMTest_TestLoader.test_testMethodPrefix__loadTestsFromName.<locals>.Foo.foo_barN)rrrrrrr
r
r
rr9srrrrr�r1)
r3r4rrrrrr*rrb)rr0rr�r�rr
r
r�(test_testMethodPrefix__loadTestsFromName7s
z8Test_TestLoader.test_testMethodPrefix__loadTestsFromNamecCs�t�d�}Gdd�dtj�}||_t�t�|d�g�g�}t�|d�|d�g�}t�|g�}t��}d|_|�|�	dg|�|�d|_|�|�	dg|�|�dS)	Nr0c@s$eZdZdd�Zdd�Zdd�ZdS)zFTest_TestLoader.test_testMethodPrefix__loadTestsFromNames.<locals>.FoocSsdS)Nr
)rr
r
rrQrzMTest_TestLoader.test_testMethodPrefix__loadTestsFromNames.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rrRrzMTest_TestLoader.test_testMethodPrefix__loadTestsFromNames.<locals>.Foo.test_2cSsdS)Nr
)rr
r
rrSrzNTest_TestLoader.test_testMethodPrefix__loadTestsFromNames.<locals>.Foo.foo_barN)rrrrrrr
r
r
rrPsrrrrr�r1)
r3r4rrrrrr*rr�)rr0rr�r�rr
r
r�)test_testMethodPrefix__loadTestsFromNamesNs
z9Test_TestLoader.test_testMethodPrefix__loadTestsFromNamescCst��}|�|jd�dS)Nr1)rrrr*)rrr
r
r�$test_testMethodPrefix__default_valuebsz4Test_TestLoader.test_testMethodPrefix__default_valuecCsTdd�}Gdd�dtj�}t��}||_|�|d�|d�g�}|�|�|�|�dS)NcSs||k||kS)Nr
)�x�yr
r
r�reversed_cmposzVTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromTestCase.<locals>.reversed_cmpc@seZdZdd�Zdd�ZdS)zMTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromTestCase.<locals>.FoocSsdS)Nr
)rr
r
rrsrzTTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromTestCase.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rrtrzTTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromTestCase.<locals>.Foo.test_2N)rrrrrr
r
r
rrrsrrr)rrr�sortTestMethodsUsingr,rr )rr�rrr!r
r
r�0test_sortTestMethodsUsing__loadTestsFromTestCasensz@Test_TestLoader.test_sortTestMethodsUsing__loadTestsFromTestCasecCsjdd�}t�d�}Gdd�dtj�}||_t��}||_|�|d�|d�g�g}|�t	|�
|��|�dS)NcSs||k||kS)Nr
)r�r�r
r
rr�szTTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromModule.<locals>.reversed_cmpr0c@seZdZdd�Zdd�ZdS)zKTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromModule.<locals>.FoocSsdS)Nr
)rr
r
rr�rzRTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromModule.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rr�rzRTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromModule.<locals>.Foo.test_2N)rrrrrr
r
r
rr�srrr)r3r4rrrrr�r,rr-r6)rr�r0rrr!r
r
r�.test_sortTestMethodsUsing__loadTestsFromModule~s
z>Test_TestLoader.test_sortTestMethodsUsing__loadTestsFromModulecCsfdd�}t�d�}Gdd�dtj�}||_t��}||_|�|d�|d�g�}|�|�	d|�|�dS)NcSs||k||kS)Nr
)r�r�r
r
rr��szRTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromName.<locals>.reversed_cmpr0c@seZdZdd�Zdd�ZdS)zITest_TestLoader.test_sortTestMethodsUsing__loadTestsFromName.<locals>.FoocSsdS)Nr
)rr
r
rr�rzPTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromName.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rr�rzPTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromName.<locals>.Foo.test_2N)rrrrrr
r
r
rr�srrr)
r3r4rrrrr�r,rrb)rr�r0rrr!r
r
r�,test_sortTestMethodsUsing__loadTestsFromName�s
z<Test_TestLoader.test_sortTestMethodsUsing__loadTestsFromNamecCsndd�}t�d�}Gdd�dtj�}||_t��}||_|�|d�|d�g�g}|�t	|�
dg|��|�dS)NcSs||k||kS)Nr
)r�r�r
r
rr��szSTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromNames.<locals>.reversed_cmpr0c@seZdZdd�Zdd�ZdS)zJTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromNames.<locals>.FoocSsdS)Nr
)rr
r
rr�rzQTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromNames.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rr�rzQTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromNames.<locals>.Foo.test_2N)rrrrrr
r
r
rr�srrr)r3r4rrrrr�r,rr-r�)rr�r0rrr!r
r
r�-test_sortTestMethodsUsing__loadTestsFromNames�s
z=Test_TestLoader.test_sortTestMethodsUsing__loadTestsFromNamescCsFdd�}Gdd�dtj�}t��}||_ddg}|�|�|�|�dS)NcSs||k||kS)Nr
)r�r�r
r
rr��szQTest_TestLoader.test_sortTestMethodsUsing__getTestCaseNames.<locals>.reversed_cmpc@seZdZdd�Zdd�ZdS)zHTest_TestLoader.test_sortTestMethodsUsing__getTestCaseNames.<locals>.FoocSsdS)Nr
)rr
r
rr�rzOTest_TestLoader.test_sortTestMethodsUsing__getTestCaseNames.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rr�rzOTest_TestLoader.test_sortTestMethodsUsing__getTestCaseNames.<locals>.Foo.test_2N)rrrrrr
r
r
rr�srrr)rrrr�rr�)rr�rr�
test_namesr
r
r�+test_sortTestMethodsUsing__getTestCaseNames�sz;Test_TestLoader.test_sortTestMethodsUsing__getTestCaseNamescCs>t��}Gdd�dtj�}dddg}|�|�|�t|��dS)Nc@s$eZdZdd�Zdd�Zdd�ZdS)zETest_TestLoader.test_sortTestMethodsUsing__default_value.<locals>.FoocSsdS)Nr
)rr
r
rr�rzLTest_TestLoader.test_sortTestMethodsUsing__default_value.<locals>.Foo.test_2cSsdS)Nr
)rr
r
rr��rzLTest_TestLoader.test_sortTestMethodsUsing__default_value.<locals>.Foo.test_3cSsdS)Nr
)rr
r
rr�rzLTest_TestLoader.test_sortTestMethodsUsing__default_value.<locals>.Foo.test_1N)rrrrr�rr
r
r
rr�srrr�r)rrrrr��sorted)rrrr�r
r
r�(test_sortTestMethodsUsing__default_value�s
z8Test_TestLoader.test_sortTestMethodsUsing__default_valuecCsFGdd�dtj�}t��}d|_ddg}|�t|�|��t|��dS)Nc@seZdZdd�Zdd�ZdS)z<Test_TestLoader.test_sortTestMethodsUsing__None.<locals>.FoocSsdS)Nr
)rr
r
rr�rzCTest_TestLoader.test_sortTestMethodsUsing__None.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rr�rzCTest_TestLoader.test_sortTestMethodsUsing__None.<locals>.Foo.test_2N)rrrrrr
r
r
rr�srrr)rrrr�r�setr�)rrrr�r
r
r�test_sortTestMethodsUsing__None�s
z/Test_TestLoader.test_sortTestMethodsUsing__NonecCsFGdd�dtj�}|d�|d�g}t��}t|_|�|�|�|�dS)Nc@s$eZdZdd�Zdd�Zdd�ZdS)zCTest_TestLoader.test_suiteClass__loadTestsFromTestCase.<locals>.FoocSsdS)Nr
)rr
r
rr�rzJTest_TestLoader.test_suiteClass__loadTestsFromTestCase.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rr�rzJTest_TestLoader.test_suiteClass__loadTestsFromTestCase.<locals>.Foo.test_2cSsdS)Nr
)rr
r
rr�rzKTest_TestLoader.test_suiteClass__loadTestsFromTestCase.<locals>.Foo.foo_barN)rrrrrrr
r
r
rr�srrr)rrrr-r,rr )rrr!rr
r
r�&test_suiteClass__loadTestsFromTestCase�s
z6Test_TestLoader.test_suiteClass__loadTestsFromTestCasecCsXt�d�}Gdd�dtj�}||_|d�|d�gg}t��}t|_|�|�	|�|�dS)Nr0c@s$eZdZdd�Zdd�Zdd�ZdS)zATest_TestLoader.test_suiteClass__loadTestsFromModule.<locals>.FoocSsdS)Nr
)rr
r
rr�rzHTest_TestLoader.test_suiteClass__loadTestsFromModule.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rr�rzHTest_TestLoader.test_suiteClass__loadTestsFromModule.<locals>.Foo.test_2cSsdS)Nr
)rr
r
rr�rzITest_TestLoader.test_suiteClass__loadTestsFromModule.<locals>.Foo.foo_barN)rrrrrrr
r
r
rr�srrr)
r3r4rrrrr-r,rr6)rr0rr!rr
r
r�$test_suiteClass__loadTestsFromModule�s
z4Test_TestLoader.test_suiteClass__loadTestsFromModulecCsXt�d�}Gdd�dtj�}||_|d�|d�g}t��}t|_|�|�	d|�|�dS)Nr0c@s$eZdZdd�Zdd�Zdd�ZdS)z?Test_TestLoader.test_suiteClass__loadTestsFromName.<locals>.FoocSsdS)Nr
)rr
r
rr
rzFTest_TestLoader.test_suiteClass__loadTestsFromName.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rrrzFTest_TestLoader.test_suiteClass__loadTestsFromName.<locals>.Foo.test_2cSsdS)Nr
)rr
r
rrrzGTest_TestLoader.test_suiteClass__loadTestsFromName.<locals>.Foo.foo_barN)rrrrrrr
r
r
rr	srrr)
r3r4rrrrr-r,rrb)rr0rr!rr
r
r�"test_suiteClass__loadTestsFromNames
z2Test_TestLoader.test_suiteClass__loadTestsFromNamecCs\t�d�}Gdd�dtj�}||_|d�|d�gg}t��}t|_|�|�	dg|�|�dS)Nr0c@s$eZdZdd�Zdd�Zdd�ZdS)z@Test_TestLoader.test_suiteClass__loadTestsFromNames.<locals>.FoocSsdS)Nr
)rr
r
rrrzGTest_TestLoader.test_suiteClass__loadTestsFromNames.<locals>.Foo.test_1cSsdS)Nr
)rr
r
rrrzGTest_TestLoader.test_suiteClass__loadTestsFromNames.<locals>.Foo.test_2cSsdS)Nr
)rr
r
rrrzHTest_TestLoader.test_suiteClass__loadTestsFromNames.<locals>.Foo.foo_barN)rrrrrrr
r
r
rrsrrr)
r3r4rrrrr-r,rr�)rr0rr!rr
r
r�#test_suiteClass__loadTestsFromNamess
z3Test_TestLoader.test_suiteClass__loadTestsFromNamescCst��}|�|jtj�dS)N)rrrKr,r)rrr
r
r�test_suiteClass__default_value&sz.Test_TestLoader.test_suiteClass__default_valuecCsRdd�}Gdd�dtj�}t|dt�|d��t��}dg}|�|�|�|�dS)NcSsdS)Nr
)�argr
r
r�noop,sz4Test_TestLoader.test_partial_functions.<locals>.noopc@seZdZdS)z3Test_TestLoader.test_partial_functions.<locals>.FooN)rrrr
r
r
rr/srZtest_partial)rr�setattr�	functools�partialrrr�)rr�rrr�r
r
r�test_partial_functions+sz&Test_TestLoader.test_partial_functionsN)Wrrrrr"r#r'r/r8r9r:r>r
rHrQrRrWrXrYr`rerjrlrmrnrorprqrrrsrtrvrwryr~r�r�r�r�r�rfr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r
r
r
rrs�	"

r�__main__)
r�r�r3rrr
rrr�mainr
r
r
r�<module>s(+