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_tokens.pyc
�
r�\c@s�ddlZddlmZmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZed	e
fd
��Y�ZdS(i����N(tdatet	timedelta(tsettings(tUser(tPasswordResetTokenGenerator(tskipIfCustomUser(tTestCase(tunittesttTokenGeneratorTestcBsKeZd�Zd�Zd�Zejejd dkd�d��Z	RS(	cCsMtjjddd�}t�}|j|�}|j|j||��dS(sF
        Ensure that we can make a token and that it is valid
        t
tokentestuserstest2@example.comttestpwN(Rtobjectstcreate_userRt
make_tokent
assertTruetcheck_token(tselftusertp0ttk1((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_tokens.pyttest_make_tokens	cCshtjjddd�}t�}|j|�}tjjdd�}|j|�}|j||�dS(su
        Ensure that the token generated for a user created in the same request
        will work correctly.
        tcomebackkidstest3@example.comR
tusernameN(RRRRR
tgettassertEqual(RRRRtreloadttk2((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_tokens.pyt
test_10265s	cCs�dtfd��Y}tjjddd�}t�}|j|�}|tj�ttj	��}|j
|j||��|tj�ttj	d��}|j|j||��dS(sK
        Ensure we can use the token after n days, but no greater.
        tMockedcBseZd�Zd�ZRS(cSs
||_dS(N(t
_today_val(Rttoday((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_tokens.pyt__init__,scSs|jS(N(R(R((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_tokens.pyt_today.s(t__name__t
__module__RR (((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_tokens.pyR+s	R	stest2@example.comR
iN(
RRRRR
RRRRtPASSWORD_RESET_TIMEOUT_DAYSRRtassertFalse(RRRRRtp1tp2((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_tokens.pyttest_timeout%s	#iiisUnnecessary test with Python 3cCs>tjjddd�}t�}|jt|j|d�dS(sV
        Make sure we don't allow overly long dates, causing a potential DoS.
        tima1337h4x0rstest4@example.comtp4ssw0rdluPJ�y�N(RRRRtassertRaisest
ValueErrort_make_token_with_timestamp(RRR((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_tokens.pyttest_date_length:s
		(ii(
R!R"RRR'RtskipIftsystversion_infoR-(((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_tokens.pyRs			
	(R/tdatetimeRRtdjango.confRtdjango.contrib.auth.modelsRtdjango.contrib.auth.tokensRtdjango.contrib.auth.tests.utilsRtdjango.testRtdjango.utilsRR(((sG/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_tokens.pyt<module>s

https://t.me/AnonymousX5 - 2025