| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/cred/test/__pycache__/ |
Upload File : |
U
W[� � @ sl d Z ddlmZmZ ddlmZ ddlmZmZ ddlm Z ddlm
Z
G dd� de�ZG d d
� d
e�ZdS )z<
Tests for basic constructs of L{twisted.cred.credentials}.
� )�division�absolute_import)�TestCase)�UsernamePassword�IUsernamePassword)�UsernameHashedPassword)�IUsernameHashedPasswordc @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
S )�UsernamePasswordTestsz(
Tests for L{UsernamePassword}.
c C s* t dd�}| �|jd� | �|jd� dS )zo
The initialisation of L{UsernamePassword} will set C{username} and
C{password} on it.
� foo� barN)r �assertEqual�usernameZpassword��selfZcreds� r �C/usr/lib/python3/dist-packages/twisted/cred/test/test_simpleauth.py�test_initialisation s
z)UsernamePasswordTests.test_initialisationc C s t dd�}| �|�d�� dS )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 r r r �test_correctPassword s
z*UsernamePasswordTests.test_correctPasswordc C s t dd�}| �|�d�� dS )z�
Calling C{checkPassword} on a L{UsernamePassword} will return L{False}
when the password given is NOT the password on the object.
r r �
someotherpassN)r �assertFalser r r r r �test_wrongPassword'