%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/cred/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/cred/test/__pycache__/test_simpleauth.cpython-312.pyc |
� Ϫ�f� � �` � 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'