%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/cred/test/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/cred/test/__pycache__/test_simpleauth.cpython-312.pyc

�

Ϫ�f�
��`�dZddlmZmZmZddlmZddlmZGd�de�Z	Gd�de�Z
y	)
z<
Tests for basic constructs of L{twisted.cred.credentials}.
�)�IUsernameHashedPassword�IUsernamePassword�UsernamePassword)�_uhpVersion)�TestCasec�0�eZdZdZdd�Zdd�Zdd�Zdd�Zy)�UsernamePasswordTestsz(
    Tests for L{UsernamePassword}.
    Nc��tdd�}|j|jd�|j|jd�y)zo
        The initialisation of L{UsernamePassword} will set C{username} and
        C{password} on it.
        �foo�barN)r�assertEqual�username�password��self�credss  �C/usr/lib/python3/dist-packages/twisted/cred/test/test_simpleauth.py�test_initialisationz)UsernamePasswordTests.test_initialisations8��
!���0���������0��������0�c�\�tdd�}|j|jd��y)z�
        Calling C{checkPassword} on a L{UsernamePassword} will return L{True}
        when the password given is the password on the object.
        �user�passN)r�
assertTrue�
checkPasswordrs  r�test_correctPasswordz*UsernamePasswordTests.test_correctPassword s'��
!��'�2������+�+�G�4�5rc�\�tdd�}|j|jd��y)z�
        Calling C{checkPassword} on a L{UsernamePassword} will return L{False}
        when the password given is NOT the password on the object.
        rr�
someotherpassN)r�assertFalserrs  r�test_wrongPasswordz(UsernamePasswordTests.test_wrongPassword(s*��
!��'�2������,�,�-=�>�?rc�T�|jtjt��y)zF
        L{UsernamePassword} implements L{IUsernamePassword}.
        N)rr�
implementedByr)rs r�test_interfacez$UsernamePasswordTests.test_interface0s��	
���)�7�7�8H�I�Jr��returnN��__name__�
__module__�__qualname__�__doc__rrrr"�rrr	r	s���1�6�@�Krr	c�0�eZdZdZdd�Zdd�Zdd�Zdd�Zy)�UsernameHashedPasswordTestsz.
    Tests for L{UsernameHashedPassword}.
    Nc��|jddt�}|dd�}|j|jd�|j|jd�y)zs
        The initialisation of L{UsernameHashedPassword} will set C{username}
        and C{hashed} on it.
        �twisted.cred.credentials�UsernameHashedPasswordrrN)�getDeprecatedModuleAttributerr
r�hashed�rr/rs   rrz/UsernameHashedPasswordTests.test_initialisation<sS��
"&�!B�!B�&�(@�+�"
��'�v�v�6���������0�������v�.rc��|jddt�}|dd�}|j|jd��y)z�
        Calling C{checkPassword} on a L{UsernameHashedPassword} will return
        L{True} when the password given is the password on the object.
        r.r/rrN)r0rrrr2s   rrz0UsernameHashedPasswordTests.test_correctPasswordHsB��
"&�!B�!B�&�(@�+�"
��'�w��8������+�+�G�4�5rc��|jddt�}|dd�}|j|jd��y)z�
        Calling C{checkPassword} on a L{UsernameHashedPassword} will return
        L{False} when the password given is NOT the password on the object.
        r.r/rrrN)r0rrrr2s   rrz.UsernameHashedPasswordTests.test_wrongPasswordSsE��
"&�!B�!B�&�(@�+�"
��'�w��8������,�,�-=�>�?rc�z�|jddt�}|jtj|��y)zR
        L{UsernameHashedPassword} implements L{IUsernameHashedPassword}.
        r.r/N)r0rrrr!)rr/s  rr"z*UsernameHashedPasswordTests.test_interface^s8��"&�!B�!B�&�(@�+�"
��	
���/�=�=�>T�U�Vrr#r%r*rrr,r,7s���
/�	6�	@�Wrr,N)r)�twisted.cred.credentialsrrr�twisted.cred.test.test_credr�twisted.trial.unittestrr	r,r*rr�<module>r9s9���
��
4�+�"K�H�"K�J.W�(�.Wr

Zerion Mini Shell 1.0