https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/django/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/test/simple.pyc
�
r�\c@s\dZddlZddlZddlZddlZddlmZmZddl	m
Zddl	mZddl
mZmZddlmZddlmZdd	lmZdZejde�dZd
�Zd�Zdejfd��YZdejfd��YZe�Zd�Zd�Zd�Z d�Z!d
ej"fd��YZ#dS(sZ
This module is pending deprecation as of Django 1.6 and will be removed in
version 1.8.

i����N(tget_apptget_apps(t_doctest(trunner(tcompare_xmltstrip_quotes(tunittest(t
import_module(tmodule_has_submoduletDjangoTestSuiteRunnersvThe django.test.simple module and DjangoTestSuiteRunner are deprecated; use django.test.runner.DiscoverRunner instead.ttestscCstjdd|�S(Ns(?<![\w])(\d+)L(?![\w])s\1(tretsub(ts((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyt<lambda>scCstjdd�|�S(NsDecimal\('(\d+(\.\d*)?)'\)cSsd|j�dS(Ns
Decimal("%s")i(tgroups(tm((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyR s(RR(R
((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyRs	t
OutputCheckercBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCsI|j|j|j|jf}x$|D]}||||�r%tSq%WtS(sn
        The entry method for doctest output checking. Defers to a sequence of
        child checkers
        (tcheck_output_defaulttcheck_output_numerictcheck_output_xmltcheck_output_jsontTruetFalse(tselftwanttgottoptionflagstcheckstcheck((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pytcheck_output$s
cCstjj||||�S(sn
        The default comparator provided by doctest - not perfect, but good for
        most purposes
        (tdoctestRR(RRRR((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyR2scCs1tjj|tt|��tt|��|�S(sXDoctest does an exact string comparison of output, which means that
        some numerically equivalent values aren't equal. This check normalizes
         * long integers (22L) so that they equal normal integers. (22)
         * Decimals so that they are comparable, regardless of the change
           made to __repr__ in Python 2.6.
        (RRRtnormalize_decimalstnormalize_long_ints(RRRR((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyR9scCs*yt||�SWntk
r%tSXdS(N(Rt	ExceptionR(RRRtoptionsflags((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyREs
cCsVt||�\}}y"tj|�}tj|�}Wntk
rKtSX||kS(sQ
        Tries to compare want and got as if they were JSON-encoded data
        (RtjsontloadsR"R(RRRR#t	want_jsontgot_json((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyRKs
(t__name__t
__module__RRRRR(((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyR#s
				t
DocTestRunnercBseZd�ZRS(cOs&tjj|||�tj|_dS(N(RR*t__init__tELLIPSISR(Rtargstkwargs((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyR+Ys(R(R)R+(((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyR*XscCs�|jjd�}|d |d}}y tdj|tg��}WnVtk
r�|dkr{tdj|��}n|}t|t�s�d}q��nX|S(Nt.i����tmodels(R(tsplitRtjointTEST_MODULEtImportErrorRtNone(t
app_moduletpartstprefixtlastttest_moduletapp_root((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyt	get_testsas 
	cCstj|dtdt�S(NtcheckerR(RtDocTestSuitetdoctestOutputCheckerR*(tmodule((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pytmake_doctestyscCs�tj�}t|d�r1|j|j��nD|jtjj|��y|jt|��Wntk
rtnXt	|�}|r�t|d�r�|j|j��q�|jtjj|��y|jt|��Wq�tk
r�q�Xn|S(sR
    Create a complete Django test suite for the provided application module.
    tsuite(
Rt	TestSuitethasattrtaddTestRBtdefaultTestLoadertloadTestsFromModuleRAt
ValueErrorR<(R6RBR:((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pytbuild_suite�s(



c	
Cs|jd�}t|�dks3t|�dkrFtd|��nt|d�}t|�}t||dd�}|dkr�|r�t||dd�}q�ny�t|tj	t
j	f�r%t|�dkrytj�j|�SWq"t
k
rtd|��q"Xq%||d�SnWnt
k
r9nXg}x�||fD]�}y}t|�}xj|D]b}|jjd|jdj|d�fd	|jdj|d�ffkri|j|�qiqiWWqMtk
r�qMXqMW|std
|��ntj|�S(s�
    Construct a test case with the specified label. Label should be of the
    form model.TestClass or model.TestClass.test_method. Returns an
    instantiated test or test suite corresponding to the label provided.

    R/iisNTest label '%s' should be of the form app.TestCase or app.TestCase.test_methodiis.Test label '%s' does not refer to a test classs%s.%ss%s.__test__.%ss(Test label '%s' does not refer to a testN(R1tlenRHRR<tgetattrR5t
issubclassRtTestCaset
real_unittestt
TestLoadertloadTestsFromTestCaset	TypeErrorRAt_dt_testtnameR(R2tappendRC(	tlabelR7R6R:t	TestClassR
R@tdocteststtest((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyt
build_test�sL$



	#
cBseZdd�ZRS(cKs�tj�}|rgxy|D]G}d|krA|jt|��qt|�}|jt|��qWn'x$t�D]}|jt|��qqW|r�x|D]}|j|�q�Wntj|tj	f�S(NR/(
RRCRERYRRIRRt
reorder_suiteRM(Rttest_labelstextra_testsR.RBRUtappRX((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyRI�s

N(R(R)R5RI(((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyR	�s(sDjangoTestSuiteRunner($t__doc__R$RRRNtwarningstdjango.db.modelsRRtdjango.testRRRtdjango.test.utilsRRtdjango.utilstdjango.utils.importlibRtdjango.utils.module_loadingRt__all__twarntPendingDeprecationWarningR3R!R RR*R?R<RARIRYtDiscoverRunnerR	(((s4/tmp/pip-install-XxeQeY/django/django/test/simple.pyt<module>s4		5				&	C

https://t.me/AnonymousX5 - 2025