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/contrib/auth/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/contrib/auth/tests/test_models.pyc
�
r�\c@s�ddlZddlmZddlmZddlmZmZmZm	Z	ddl
mZddlm
Z
ddlmZddlmZdd	lmZdd
lmZe
ededd
�defd��Y��Ze
ede�defd��Y��Ze
ede�defd��Y��Ze
ede�defd��Y��Ze
defd��Y�Zdefd��YZe
defd��Y�ZdS(i����N(tsettings(tget_user_model(tGrouptUsertSiteProfileNotAvailabletUserManager(tIsActiveTestUser1(tskipIfCustomUser(t	post_save(tTestCase(toverride_settings(tsixtUSE_TZtAUTH_PROFILE_MODULEttProfileTestCasecBseZd�ZRS(c
Cstjjdd�}t`tj��;tjdt�t	j
|td��|j�WdQXWdQXdt_tj��;tjdt�t	j
|td��|j�WdQXWdQXdt_tj��;tjdt�t	j
|td��|j�WdQXWdQXdS(	Ntusernamet
testclienttignores3You need to set AUTH_PROFILE_MODULE in your projecttfoobars5app_label and model_name should be separated by a dotsfoo.bars Unable to load the profile model(
RtobjectstcreateRR
twarningstcatch_warningstsimplefiltertDeprecationWarningRtassertRaisesRegexRtget_profile(tselftuser((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyttest_site_profile_not_availables&

	

	

(t__name__t
__module__R(((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyRstNaturalKeysTestCasecBs#eZdgZd�Zd�ZRS(sauthtestdata.jsoncCsKtjjdd�}|jtjjd�|�|j|j�d�dS(NRtstaff(R"(RRtgettassertEqualtget_by_natural_keytnatural_key(Rt
staff_user((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyttest_user_natural_key4scCs5tjjdd�}|jtjjd�|�dS(Ntnametusers(RRRR$R%(Rtusers_group((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyttest_group_natural_key9s(RR tfixturesR(R,(((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyR!/s		t"LoadDataWithoutNaturalKeysTestCasecBseZdgZd�ZRS(sregular.jsoncCsGtjjdd�}tjjdd�}|j||jj��dS(NRtmy_usernameR)tmy_group(RRR#RR$tgroups(RRtgroup((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyt'test_user_is_created_and_added_to_groupCs(RR R-R3(((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyR.>s	tLoadDataWithNaturalKeysTestCasecBseZdgZd�ZRS(snatural.jsoncCsGtjjdd�}tjjdd�}|j||jj��dS(NRR/R)R0(RRR#RR$R1(RRR2((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyR3Ns(RR R-R3(((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyR4Is	tUserManagerTestCasecBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCsXd}tjjd|�}|j|j|�|j|jd�|j|j��dS(Nsnormal@normal.comR(RRtcreate_userR$temailRtassertFalsethas_usable_password(Rtemail_lowercaseR((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyttest_create_userWs
cCs#tjd�}|j|d�dS(NsAbc\@DEF@EXAMPLE.comsAbc\@DEF@example.com(Rtnormalize_emailR$(Rtreturned((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyt/test_create_user_email_domain_normalize_rfc3696^scCs#tjd�}|j|d�dS(Nsnormal@DOMAIN.COMsnormal@domain.com(RR<R$(RR=((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyt'test_create_user_email_domain_normalizedscCs#tjd�}|j|d�dS(Nsemail\ with_whitespace@D.COMsemail\ with_whitespace@d.com(RR<R$(RR=((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyt7test_create_user_email_domain_normalize_with_whitespacehscCs#|jtdtjjdd�dS(NsThe given username must be setRR(tassertRaisesMessaget
ValueErrorRRR6(R((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyttest_empty_usernamels	(RR R;R>R?R@RC(((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyR5Ts
				tIsActiveTestCasecBs5eZdZed��Zedd�d��ZRS(sB
    Tests the behavior of the guaranteed is_active attribute
    cCsmtjjdddd�}|j|jt�t|_|j�tjjd|j	�}|j
|j�dS(NRtfooR7sfoo@bar.comtpk(RRRR$t	is_activetTruetFalsetsaveR#RFR8(RRtuser_fetched((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyttest_builtin_user_isactivews	
tAUTH_USER_MODELsauth.IsActiveTestUser1cCsmt�}|dd�}|j|jt�t|_|j�|jjd|j�}|j|jt�dS(sH
        tests that the default value for is_active is provided
        RRERFN(	RR$RGRHRIRJt_default_managerR#RF(Rt	UserModelRRK((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyttest_is_active_field_default�s		
(RR t__doc__RRLR
RP(((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyRDrstTestCreateSuperUserSignalscBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(s,
    Simple test case for ticket #20541
    cOs|jd7_dS(Ni(t
signals_count(Rtargstkwargs((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pytpost_save_listener�scCs#d|_tj|jdt�dS(Nitsender(RSRtconnectRVR(R((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pytsetUp�s	cCstj|jdt�dS(NRW(Rt
disconnectRVR(R((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyttearDown�scCs'tjjd�|j|jd�dS(NtJohnDoei(RRR6R$RS(R((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyR;�scCs-tjjddd�|j|jd�dS(NR\smail@example.comt1i(RRtcreate_superuserR$RS(R((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyttest_create_superuser�s(RR RQRVRYR[R;R_(((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyRR�s				(Rtdjango.confRtdjango.contrib.authRtdjango.contrib.auth.modelsRRRRt%django.contrib.auth.tests.custom_userRtdjango.contrib.auth.tests.utilsRtdjango.db.models.signalsRtdjango.testR	tdjango.test.utilsR
tdjango.utilsRRIRR!R.R4R5RDRR(((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_models.pyt<module>s4"
		!

https://t.me/AnonymousX5 - 2025