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_handlers.pyc
�
r�\c@s�ddlmZddlmZmZddlmZmZddlm	Z	ddl
mZddlm
Z
ddlmZde
fd	��YZd
S(i����(tunicode_literals(tcheck_passwordtgroups_for_user(tUsertGroup(t
CustomUser(tskipIfCustomUser(tTransactionTestCase(toverride_settingstModWsgiHandlerTestCasecBsPeZdZddgZed��Zedd�d��Zed��ZRS(u7
    Tests for the mod_wsgi authentication handler
    udjango.contrib.authudjango.contrib.contenttypescCs�tjjddd�|jtidd�dk�|jtidd��tjjdd�jdt�|j	tidd��|j	tidd��dS(	u�
        Verify that check_password returns the correct values as per
        http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms#Apache_Authentication_Provider
        utestutest@example.comuunknownutusernamet	is_activeu	incorrectN(
Rtobjectstcreate_usert
assertTrueRtNonetfiltertupdatetFalsetassertFalse(tself((sI/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_handlers.pyttest_check_passwordstAUTH_USER_MODELuauth.CustomUsercCsktjjddd�|jtidd�dk�|jtidd��|jtidd��dS(u�
        Verify that check_password returns the correct values as per
        http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms#Apache_Authentication_Provider

        with custom user installed
        utest@example.comu
1990-01-01utestuunknownuu	incorrectN(Rt_default_managerR
RRRR(R((sI/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_handlers.pyttest_check_password_custom_user,s	cCs�tjjddd�}tjjddd�tjjdd�}|jj|�|jtid�g�|jtid�dg�|jtid�g�d	S(
u�
        Check that groups_for_user returns correct values as per
        http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms#Apache_Group_Authorisation
        utestutest@example.comutest1utest1@example.comtnameu
test_groupuunknownt
test_groupN(	RRR
RtcreatetgroupstaddtassertEqualR(Rtuser1tgroup((sI/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_handlers.pyttest_groups_for_user@s(	t__name__t
__module__t__doc__tavailable_appsRRRRR!(((sI/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_handlers.pyR	
s	N(t
__future__Rt$django.contrib.auth.handlers.modwsgiRRtdjango.contrib.auth.modelsRRt%django.contrib.auth.tests.custom_userRtdjango.contrib.auth.tests.utilsRtdjango.testRtdjango.test.utilsRR	(((sI/tmp/pip-install-XxeQeY/django/django/contrib/auth/tests/test_handlers.pyt<module>s

https://t.me/AnonymousX5 - 2025