Your IP : 216.73.217.32


Current Path : /opt/alt/python37/lib64/python3.7/unittest/test/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/unittest/test/__pycache__/test_loader.cpython-37.opt-1.pyc

B

� fO��@sVddlZddlZddlZddlZddlZdd�ZGdd�dej�ZedkrRe�	�dS)�Ncs�fdd�}|S)NcsTg}ttd|���}z
�||�S||krHyt`WqNtk
rDYqNXn|t_XdS)N�__warningregistry__)�getattr�warnings�copyr�AttributeError)�argsZkwsZmissingZsaved)�func��>/opt/alt/python37/lib64/python3.7/unittest/test/test_loader.py�wrappers
z warningregistry.<locals>.wrapperr	)rrr	)rr
�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	r
r:rzKTest_TestLoader.test_loadTestsFromTestCase__no_matches.<locals>.Foo.foo_barN)rrrrr	r	r	r
r9sr)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	r
r]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)rrrr0r	r	r	r
�
MyTestCasersr1r0)�types�
ModuleTyperr�
testcase_1r�loadTestsFromModuler*r+rr,)rr/r1rr-�expectedr	r	r
�+test_loadTestsFromModule__TestCase_subclassps

z;Test_TestLoader.test_loadTestsFromModule__TestCase_subclasscCs>t�d�}t��}|�|�}|�||j�|�t|�g�dS)Nr/)	r2r3rrr5r*r+rr,)rr/rr-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)Nr/c@seZdZdS)zOTest_TestLoader.test_loadTestsFromModule__no_TestCase_tests.<locals>.MyTestCaseN)rrrr	r	r	r
r1�sr1)r2r3rrr4rr5r*r+rr,)rr/r1rr-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	r
r0�szOTest_TestLoader.test_loadTestsFromModule__not_a_module.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1�sr1cseZdZ�ZdS)zJTest_TestLoader.test_loadTestsFromModule__not_a_module.<locals>.NotAModuleN)rrrrr	)r1r	r
�
NotAModule�sr:r0)rr�objectrr5rrr,)rr:rr-�	referencer	)r1r
�&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)
Nr/c@seZdZdd�ZdS)zHTest_TestLoader.test_loadTestsFromModule__load_tests.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0�szMTest_TestLoader.test_loadTestsFromModule__load_tests.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1�sr1cs"��|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)r2r3rrr4rArr5r*rrr�catch_warnings�simplefilter)rr/r1rArr-r	)r@rr
�$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)Nr/c@seZdZdd�ZdS)zbTest_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_positional.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0�szgTest_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_positional.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1�sr1cs"��|tj���|||f�|S)N)r*rrr>)rr r?)r@rr	r
rA�szbTest_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_positional.<locals>.load_testsT)rB�alwaysF���z(use_load_tests is deprecated and ignored)r2r3rrr4rArrrErFr5r*rr�assertIs�category�DeprecationWarning�str�message)rr/r1rAr�wr-r	)r@rr
�>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)
Nr/c@seZdZdd�ZdS)z_Test_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_keyword.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0�szdTest_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_keyword.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1�sr1cs"��|tj���|||f�|S)N)r*rrr>)rr r?)r@rr	r
rA�sz_Test_TestLoader.test_loadTestsFromModule__use_load_tests_deprecated_keyword.<locals>.load_testsT)rBrHF)rDrIz(use_load_tests is deprecated and ignored)r2r3rrr4rArrrErFr5r*rrrJrKrLrMrN)rr/r1rArrOr-r	)r@rr
�;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)Nr/c@seZdZdd�ZdS)zVTest_TestLoader.test_loadTestsFromModule__too_many_positional_args.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0sz[Test_TestLoader.test_loadTestsFromModule__too_many_positional_args.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1
sr1cs"��|tj���|||f�|S)N)r*rrr>)rr r?)r@rr	r
rAszVTest_TestLoader.test_loadTestsFromModule__too_many_positional_args.<locals>.load_testsT)rBrHFztestme.*rIz(use_load_tests is deprecated and ignoredzBloadTestsFromModule() takes 1 positional argument but 3 were given)r2r3rrr4rAr�assertRaisesr$rrErFr5rJrKrLrrMrN�type�	exception)rr/r1rAr�cmrOr	)r@rr
�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)Nr/c@seZdZdd�ZdS)z^Test_TestLoader.test_loadTestsFromModule__use_load_tests_other_bad_keyword.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0(szcTest_TestLoader.test_loadTestsFromModule__use_load_tests_other_bad_keyword.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1'sr1cs"��|tj���|||f�|S)N)r*rrr>)rr r?)r@rr	r
rA-sz^Test_TestLoader.test_loadTestsFromModule__use_load_tests_other_bad_keyword.<locals>.load_testsrCFT)rDZvery_badZworsezCloadTestsFromModule() got an unexpected keyword argument 'very_bad')r2r3rrr4rArrrErFrRr$r5rrSrTrM)rr/r1rArrUr	)r@rr
�: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)Nr/c@seZdZdd�ZdS)zETest_TestLoader.test_loadTestsFromModule__pattern.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0BszJTest_TestLoader.test_loadTestsFromModule__pattern.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1Asr1cs"��|tj���|||f�|S)N)r*rrr>)rr r?)r@rr	r
rAGszETest_TestLoader.test_loadTestsFromModule__pattern.<locals>.load_testsztestme.*)r?)r2r3rrr4rArr5r*rr)rr/r1rArr-r	)r@rr
�!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)	Nr/cSstd��dS)Nzsome failure)r$)rr r?r	r	r
rAUszOTest_TestLoader.test_loadTestsFromModule__faulty_load_tests.<locals>.load_tests�rzFailed to call load_tests:zmissing error string in %rzsome failure)r2r3rArrr5r*rr�countTestCases�assertNotEqualr�lenZ
assertTruer,�assertRaisesRegexr$r/)rr/rArr-�errorr0r	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�
ValueErrorrrMr%)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)rrra�check_deferred_error�assertInr]�ImportErrorr)rrr-r^r0r6�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)rrrarerfr]rgrj)rrr-r6r^r0r	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)rrrarerfr]rrj)rrr-r6r^r0r	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)rrrarerfr]rgrj)rrr-r6r^r0r	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)Nrjz1module 'unittest' has no attribute 'sdasfasfasdf'zmissing error string in %r)rrrarerfr]rrj)rrr-r6r^r0r	r	r
�-test_loadTestsFromName__relative_unknown_name�s
z=Test_TestLoader.test_loadTestsFromName__relative_unknown_namecCsRt��}|�dt�}|�||�\}}d}|�||d|�|�t|t|d��dS)Nr`zhas no attribute ''zmissing error string in %r)rrrarerfr]rr)rrr-r^r0r6r	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)rrrarerfr]rr)rrr-r^r0r6rhr	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	r
r0szVTest_TestLoader.test_loadTestsFromName__relative_not_a_module.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1sr1cseZdZ�ZdS)zQTest_TestLoader.test_loadTestsFromName__relative_not_a_module.<locals>.NotAModuleN)rrrrr	)r1r	r
r:sr:rr0)rrr;rrarr,)rr:rr-r<r	)r1r
�-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)Nr/r4zShould have raised TypeError)	r2r3r;r4rrrar$r%)rr/rr	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)Nr/c@seZdZdd�ZdS)zVTest_TestLoader.test_loadTestsFromName__relative_TestCase_subclass.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r00sz[Test_TestLoader.test_loadTestsFromName__relative_TestCase_subclass.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1/sr1r4r0)r2r3rrr4rrar*r+rr,)rr/r1rr-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)Nr/c@seZdZdd�ZdS)zNTest_TestLoader.test_loadTestsFromName__relative_TestSuite.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0@szSTest_TestLoader.test_loadTestsFromName__relative_TestSuite.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1?sr1r0�	testsuite)r2r3rrrrtrrar*r+rr,)rr/r1rr-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)Nr/c@seZdZdd�ZdS)zOTest_TestLoader.test_loadTestsFromName__relative_testmethod.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0OszTTest_TestLoader.test_loadTestsFromName__relative_testmethod.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1Nsr1ztestcase_1.testr0)r2r3rrr4rrar*r+rr,)rr/r1rr-r	r	r
�+test_loadTestsFromName__relative_testmethodLs
z;Test_TestLoader.test_loadTestsFromName__relative_testmethodcCspt�d�}Gdd�dtj�}||_t��}|�d|�}d}|�||�\}}|�||d|�|�	t
||j�dS)Nr/c@seZdZdd�ZdS)zWTest_TestLoader.test_loadTestsFromName__relative_invalid_testmethod.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0dsz\Test_TestLoader.test_loadTestsFromName__relative_invalid_testmethod.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1csr1ztestcase_1.testfooz3type object 'MyTestCase' has no attribute 'testfoo'zmissing error string in %r)r2r3rrr4rrarerfr]r�testfoo)rr/r1rr-r6r^r0r	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)Nr/cSsdS)Nr	r	r	r	r
�<lambda>urzMTest_TestLoader.test_loadTestsFromName__callable__TestSuite.<locals>.<lambda>cSsdS)Nr	r	r	r	r
ryvrcst���g�S)N)rrr	)r4�
testcase_2r	r
�return_TestSuitewszUTest_TestLoader.test_loadTestsFromName__callable__TestSuite.<locals>.return_TestSuiter{)r2r3r�FunctionTestCaser{rrar*r+rr,)rr/r{rr-r	)r4rzr
�+test_loadTestsFromName__callable__TestSuitess
z;Test_TestLoader.test_loadTestsFromName__callable__TestSuitecsbt�d�}t�dd����fdd�}||_t��}|�d|�}|�||j�|�	t
|��g�dS)Nr/cSsdS)Nr	r	r	r	r
ry�rzUTest_TestLoader.test_loadTestsFromName__callable__TestCase_instance.<locals>.<lambda>cs�S)Nr	r	)r4r	r
�return_TestCase�sz\Test_TestLoader.test_loadTestsFromName__callable__TestCase_instance.<locals>.return_TestCaser~)r2r3rr|r~rrar*r+rr,)rr/r~rr-r	)r4r
�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�r/cSsdS)Nr	r	r	r	r
ry�rzfTest_TestLoader.test_loadTestsFromName__callable__TestCase_instance_ProperSuiteClass.<locals>.<lambda>cs�S)Nr	r	)r4r	r
r~�szmTest_TestLoader.test_loadTestsFromName__callable__TestCase_instance_ProperSuiteClass.<locals>.return_TestCaser~)rrr2r3r|r~rr+rar*rr,)rr�r/r~rr-r	)r4r
�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	r
r��sr�r/c@seZdZdd�ZdS)z`Test_TestLoader.test_loadTestsFromName__relative_testmethod_ProperSuiteClass.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0�szeTest_TestLoader.test_loadTestsFromName__relative_testmethod_ProperSuiteClass.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1�sr1ztestcase_1.testr0)rrr2r3rr4rr+rar*rr,)rr�r/r1rr-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)Nr/cSsdS)N�r	r	r	r	r
�return_wrong�szRTest_TestLoader.test_loadTestsFromName__callable__wrong_type.<locals>.return_wrongr�z6TestLoader.loadTestsFromName failed to raise TypeError)r2r3r�rrrar$r%)rr/r�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�poprrrar*r+rr,rf)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.
        rYr)	r*rrrrZr[rr\r,)rrr-r^r0r	r	r
re�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)Nr`zEmpty module namez8TestLoader.loadTestsFromNames failed to raise ValueError)rrr�rbrrMr%)rrrcr	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�rer,rfr]rgr)rrr-r^r0r6rhr	r	r
�'test_loadTestsFromNames__malformed_name&s
z7Test_TestLoader.test_loadTestsFromNames__malformed_namecCsVt��}|�dg�}|�|t|�d�\}}d}|�||d|�|�t||j�dS)Nrjrz*Failed to import test module: sdasfasfasdfzmissing error string in %r)	rrr�rer,rfr]rgrj)rrr-r^r0r6r	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�rer,rfr]rrj)rrr-r^r0r6r	r	r
�*test_loadTestsFromNames__unknown_attr_nameKs

z:Test_TestLoader.test_loadTestsFromNames__unknown_attr_namecCsXt��}|�dgt�}|�|t|�d�\}}d}|�||d|�|�t||j�dS)Nrjrz1module 'unittest' has no attribute 'sdasfasfasdf'zmissing error string in %r)	rrr�rer,rfr]rrj)rrr-r^r0r6r	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)NrrjrYz1module 'unittest' has no attribute 'sdasfasfasdf'zmissing error string in %r)	rrr�rer,rfr]rrj)rrr-r^r0r6r	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)Nr`rzhas no attribute ''zmissing error string in %r)	rrr�rer,rfr]rr)rrr-r^r0r6r	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�rer,rfr]rr)rrr-r^r0r6rhr	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	r
r0�szWTest_TestLoader.test_loadTestsFromNames__relative_not_a_module.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1�sr1cseZdZ�ZdS)zRTest_TestLoader.test_loadTestsFromNames__relative_not_a_module.<locals>.NotAModuleN)rrrrr	)r1r	r
r:�sr:rr0)rrr;rr�rrr,)rr:rr-r<r	)r1r
�.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)Nr/r4zShould have raised TypeError)	r2r3r;r4rrr�r$r%)rr/rr	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)Nr/c@seZdZdd�ZdS)zWTest_TestLoader.test_loadTestsFromNames__relative_TestCase_subclass.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0�sz\Test_TestLoader.test_loadTestsFromNames__relative_TestCase_subclass.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1�sr1r4r0)r2r3rrr4rr�r*r+rr,)rr/r1rr-r6r	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)Nr/c@seZdZdd�ZdS)zOTest_TestLoader.test_loadTestsFromNames__relative_TestSuite.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0�szTTest_TestLoader.test_loadTestsFromNames__relative_TestSuite.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1�sr1r0rt)r2r3rrrrtrr�r*r+rr,)rr/r1rr-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)Nr/c@seZdZdd�ZdS)zPTest_TestLoader.test_loadTestsFromNames__relative_testmethod.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0�szUTest_TestLoader.test_loadTestsFromNames__relative_testmethod.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1�sr1ztestcase_1.testr0)r2r3rrr4rr�r*r+rrr,)rr/r1rr-�	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)Nr/c@seZdZdd�ZdS)zdTest_TestLoader.test_loadTestsFromName__function_with_different_name_than_method.<locals>.MyTestCasecSsdS)NrYr	r	r	r	r
ryrzmTest_TestLoader.test_loadTestsFromName__function_with_different_name_than_method.<locals>.MyTestCase.<lambda>N)rrrr0r	r	r	r
r1sr1ztestcase_1.testr0)r2r3rrr4rr�r*r+rrr,)rr/r1rr-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)Nr/c@seZdZdd�ZdS)zXTest_TestLoader.test_loadTestsFromNames__relative_invalid_testmethod.<locals>.MyTestCasecSsdS)Nr	)rr	r	r
r0sz]Test_TestLoader.test_loadTestsFromNames__relative_invalid_testmethod.<locals>.MyTestCase.testN)rrrr0r	r	r	r
r1sr1ztestcase_1.testfoorz3type object 'MyTestCase' has no attribute 'testfoo'zmissing error string in %r)
r2r3rrr4rr�rer,rfr]rrw)rr/r1rr-r^r0r6r	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)Nr/cSsdS)Nr	r	r	r	r
ry+rzNTest_TestLoader.test_loadTestsFromNames__callable__TestSuite.<locals>.<lambda>cSsdS)Nr	r	r	r	r
ry,rcst���g�S)N)rrr	)r4rzr	r
r{-szVTest_TestLoader.test_loadTestsFromNames__callable__TestSuite.<locals>.return_TestSuiter{)r2r3rr|r{rr�r*r+rrr,)rr/r{rr-r6r	)r4rzr
�,test_loadTestsFromNames__callable__TestSuite)s
z<Test_TestLoader.test_loadTestsFromNames__callable__TestSuitecspt�d�}t�dd����fdd�}||_t��}|�dg|�}|�||j�t�	�g�}|�
t|�|g�dS)Nr/cSsdS)Nr	r	r	r	r
ry<rzVTest_TestLoader.test_loadTestsFromNames__callable__TestCase_instance.<locals>.<lambda>cs�S)Nr	r	)r4r	r
r~=sz]Test_TestLoader.test_loadTestsFromNames__callable__TestCase_instance.<locals>.return_TestCaser~)r2r3rr|r~rr�r*r+rrr,)rr/r~rr-r�r	)r4r
�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)Nr/c@seZdZdd�ZdS)zSTest_TestLoader.test_loadTestsFromNames__callable__call_staticmethod.<locals>.Test1cSsdS)Nr	)rr	r	r
r0OszXTest_TestLoader.test_loadTestsFromNames__callable__call_staticmethod.<locals>.Test1.testN)rrrr0r	r	r	r
�Test1Nsr�r0cseZdZe�fdd��ZdS)zQTest_TestLoader.test_loadTestsFromNames__callable__call_staticmethod.<locals>.Foocs�S)Nr	r	)r4r	r
�fooTszUTest_TestLoader.test_loadTestsFromNames__callable__call_staticmethod.<locals>.Foo.fooN)rrr�staticmethodr�r	)r4r	r
rSsrzFoo.foo)r2r3rrrrr�r*r+rrr,)rr/r�rrr-r�r	)r4r
�4test_loadTestsFromNames__callable__call_staticmethodLs
zDTest_TestLoader.test_loadTestsFromNames__callable__call_staticmethodcCsVt�d�}dd�}||_t��}y|�dg|�}Wntk
rFYnX|�d�dS)Nr/cSsdS)Nr�r	r	r	r	r
r�fszSTest_TestLoader.test_loadTestsFromNames__callable__wrong_type.<locals>.return_wrongr�z7TestLoader.loadTestsFromNames failed to raise TypeError)r2r3r�rrr�r$r%)rr/r�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,rrf)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	r
r�rz:Test_TestLoader.test_getTestCaseNames.<locals>.Test.test_1cSsdS)Nr	)rr	r	r
r�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	r
r��rzDTest_TestLoader.test_getTestCaseNames__no_tests.<locals>.Test.foobarN)rrrr�r	r	r	r
r��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	r
r�rzHTest_TestLoader.test_getTestCaseNames__inheritance.<locals>.TestP.test_1cSsdS)Nr	)rr	r	r
r�rzHTest_TestLoader.test_getTestCaseNames__inheritance.<locals>.TestP.test_2cSsdS)Nr	)rr	r	r
r��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	r
r�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	r
r�rzNTest_TestLoader.test_getTestCaseNames__testNamePatterns.<locals>.MyTest.test_1cSsdS)Nr	)rr	r	r
r�rzNTest_TestLoader.test_getTestCaseNames__testNamePatterns.<locals>.MyTest.test_2cSsdS)Nr	)rr	r	r
r��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	r
r�rzkTest_TestLoader.test_getTestCaseNames__testNamePatterns__attribute_access_regression.<locals>.MyTest.test_1N)rrrrr�r	)r�r	r
r��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	r
r
rzPTest_TestLoader.test_testMethodPrefix__loadTestsFromTestCase.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
rrzPTest_TestLoader.test_testMethodPrefix__loadTestsFromTestCase.<locals>.Foo.test_2cSsdS)Nr	)rr	r	r
rrzQTest_TestLoader.test_testMethodPrefix__loadTestsFromTestCase.<locals>.Foo.foo_barN)rrrrrrr	r	r	r
rsrrrrr�r0)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)	Nr/c@s$eZdZdd�Zdd�Zdd�ZdS)zGTest_TestLoader.test_testMethodPrefix__loadTestsFromModule.<locals>.FoocSsdS)Nr	)rr	r	r
r#rzNTest_TestLoader.test_testMethodPrefix__loadTestsFromModule.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
r$rzNTest_TestLoader.test_testMethodPrefix__loadTestsFromModule.<locals>.Foo.test_2cSsdS)Nr	)rr	r	r
r%rzOTest_TestLoader.test_testMethodPrefix__loadTestsFromModule.<locals>.Foo.foo_barN)rrrrrrr	r	r	r
r"srrrrr�r0)r2r3rrrrrr)rr,r5)rr/rr�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)	Nr/c@s$eZdZdd�Zdd�Zdd�ZdS)zETest_TestLoader.test_testMethodPrefix__loadTestsFromName.<locals>.FoocSsdS)Nr	)rr	r	r
r:rzLTest_TestLoader.test_testMethodPrefix__loadTestsFromName.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
r;rzLTest_TestLoader.test_testMethodPrefix__loadTestsFromName.<locals>.Foo.test_2cSsdS)Nr	)rr	r	r
r<rzMTest_TestLoader.test_testMethodPrefix__loadTestsFromName.<locals>.Foo.foo_barN)rrrrrrr	r	r	r
r9srrrrr�r0)
r2r3rrrrrr)rra)rr/rr�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)	Nr/c@s$eZdZdd�Zdd�Zdd�ZdS)zFTest_TestLoader.test_testMethodPrefix__loadTestsFromNames.<locals>.FoocSsdS)Nr	)rr	r	r
rQrzMTest_TestLoader.test_testMethodPrefix__loadTestsFromNames.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
rRrzMTest_TestLoader.test_testMethodPrefix__loadTestsFromNames.<locals>.Foo.test_2cSsdS)Nr	)rr	r	r
rSrzNTest_TestLoader.test_testMethodPrefix__loadTestsFromNames.<locals>.Foo.foo_barN)rrrrrrr	r	r	r
rPsrrrrr�r0)
r2r3rrrrrr)rr�)rr/rr�r�rr	r	r
�)test_testMethodPrefix__loadTestsFromNamesNs
z9Test_TestLoader.test_testMethodPrefix__loadTestsFromNamescCst��}|�|jd�dS)Nr0)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	r
rsrzTTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromTestCase.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
rtrzTTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromTestCase.<locals>.Foo.test_2N)rrrrrr	r	r	r
rrsrrr)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	r
r�szTTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromModule.<locals>.reversed_cmpr/c@seZdZdd�Zdd�ZdS)zKTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromModule.<locals>.FoocSsdS)Nr	)rr	r	r
r�rzRTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromModule.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
r�rzRTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromModule.<locals>.Foo.test_2N)rrrrrr	r	r	r
r�srrr)r2r3rrrrr�r+rr,r5)rr�r/rrr 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	r
r��szRTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromName.<locals>.reversed_cmpr/c@seZdZdd�Zdd�ZdS)zITest_TestLoader.test_sortTestMethodsUsing__loadTestsFromName.<locals>.FoocSsdS)Nr	)rr	r	r
r�rzPTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromName.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
r�rzPTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromName.<locals>.Foo.test_2N)rrrrrr	r	r	r
r�srrr)
r2r3rrrrr�r+rra)rr�r/rrr 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	r
r��szSTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromNames.<locals>.reversed_cmpr/c@seZdZdd�Zdd�ZdS)zJTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromNames.<locals>.FoocSsdS)Nr	)rr	r	r
r�rzQTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromNames.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
r�rzQTest_TestLoader.test_sortTestMethodsUsing__loadTestsFromNames.<locals>.Foo.test_2N)rrrrrr	r	r	r
r�srrr)r2r3rrrrr�r+rr,r�)rr�r/rrr 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	r
r��szQTest_TestLoader.test_sortTestMethodsUsing__getTestCaseNames.<locals>.reversed_cmpc@seZdZdd�Zdd�ZdS)zHTest_TestLoader.test_sortTestMethodsUsing__getTestCaseNames.<locals>.FoocSsdS)Nr	)rr	r	r
r�rzOTest_TestLoader.test_sortTestMethodsUsing__getTestCaseNames.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
r�rzOTest_TestLoader.test_sortTestMethodsUsing__getTestCaseNames.<locals>.Foo.test_2N)rrrrrr	r	r	r
r�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	r
r�rzLTest_TestLoader.test_sortTestMethodsUsing__default_value.<locals>.Foo.test_2cSsdS)Nr	)rr	r	r
r��rzLTest_TestLoader.test_sortTestMethodsUsing__default_value.<locals>.Foo.test_3cSsdS)Nr	)rr	r	r
r�rzLTest_TestLoader.test_sortTestMethodsUsing__default_value.<locals>.Foo.test_1N)rrrrr�rr	r	r	r
r�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	r
r�rzCTest_TestLoader.test_sortTestMethodsUsing__None.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
r�rzCTest_TestLoader.test_sortTestMethodsUsing__None.<locals>.Foo.test_2N)rrrrrr	r	r	r
r�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	r
r�rzJTest_TestLoader.test_suiteClass__loadTestsFromTestCase.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
r�rzJTest_TestLoader.test_suiteClass__loadTestsFromTestCase.<locals>.Foo.test_2cSsdS)Nr	)rr	r	r
r�rzKTest_TestLoader.test_suiteClass__loadTestsFromTestCase.<locals>.Foo.foo_barN)rrrrrrr	r	r	r
r�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)Nr/c@s$eZdZdd�Zdd�Zdd�ZdS)zATest_TestLoader.test_suiteClass__loadTestsFromModule.<locals>.FoocSsdS)Nr	)rr	r	r
r�rzHTest_TestLoader.test_suiteClass__loadTestsFromModule.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
r�rzHTest_TestLoader.test_suiteClass__loadTestsFromModule.<locals>.Foo.test_2cSsdS)Nr	)rr	r	r
r�rzITest_TestLoader.test_suiteClass__loadTestsFromModule.<locals>.Foo.foo_barN)rrrrrrr	r	r	r
r�srrr)
r2r3rrrrr,r+rr5)rr/rr rr	r	r
�$test_suiteClass__loadTestsFromModule�s
z4Test_TestLoader.test_suiteClass__loadTestsFromModulecCsXt�d�}Gdd�dtj�}||_|d�|d�g}t��}t|_|�|�	d|�|�dS)Nr/c@s$eZdZdd�Zdd�Zdd�ZdS)z?Test_TestLoader.test_suiteClass__loadTestsFromName.<locals>.FoocSsdS)Nr	)rr	r	r
r
rzFTest_TestLoader.test_suiteClass__loadTestsFromName.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
rrzFTest_TestLoader.test_suiteClass__loadTestsFromName.<locals>.Foo.test_2cSsdS)Nr	)rr	r	r
rrzGTest_TestLoader.test_suiteClass__loadTestsFromName.<locals>.Foo.foo_barN)rrrrrrr	r	r	r
r	srrr)
r2r3rrrrr,r+rra)rr/rr rr	r	r
�"test_suiteClass__loadTestsFromNames
z2Test_TestLoader.test_suiteClass__loadTestsFromNamecCs\t�d�}Gdd�dtj�}||_|d�|d�gg}t��}t|_|�|�	dg|�|�dS)Nr/c@s$eZdZdd�Zdd�Zdd�ZdS)z@Test_TestLoader.test_suiteClass__loadTestsFromNames.<locals>.FoocSsdS)Nr	)rr	r	r
rrzGTest_TestLoader.test_suiteClass__loadTestsFromNames.<locals>.Foo.test_1cSsdS)Nr	)rr	r	r
rrzGTest_TestLoader.test_suiteClass__loadTestsFromNames.<locals>.Foo.test_2cSsdS)Nr	)rr	r	r
rrzHTest_TestLoader.test_suiteClass__loadTestsFromNames.<locals>.Foo.foo_barN)rrrrrrr	r	r	r
rsrrr)
r2r3rrrrr,r+rr�)rr/rr rr	r	r
�#test_suiteClass__loadTestsFromNamess
z3Test_TestLoader.test_suiteClass__loadTestsFromNamescCst��}|�|jtj�dS)N)rrrJr+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	r
r/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.r7r8r9r=rrGrPrQrVrWrXr_rdrirkrlrmrnrorprqrrrsrurvrxr}rr�r�r�r�rer�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	r
r
s�	"

r
�__main__)
r�r�r2rrrrr
r�mainr	r	r	r
�<module>s(+