| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/cred/test/__pycache__/ |
Upload File : |
�
oj�
� �` � d Z ddlmZmZmZ ddlmZ ddlmZ G d� de� Z G d� de� Z
y )
z<
Tests for basic constructs of L{twisted.cred.credentials}.
� )�IUsernameHashedPassword�IUsernamePassword�UsernamePassword)�_uhpVersion)�TestCasec �0 � e Zd ZdZdd�Zdd�Zdd�Zdd�Zy)�UsernamePasswordTestsz(
Tests for L{UsernamePassword}.
Nc � � t dd� }| j |j d� | j |j d� 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_initialisation s8 � �
!���0���������0��������0� c �\ � t dd� }| j |j d� � 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�
checkPasswordr s r �test_correctPasswordz*UsernamePasswordTests.test_correctPassword s'