%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/cred/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/cred/test/__pycache__/test_strcred.cpython-312.pyc |
� Ϫ�f�d � � � d Z ddlZddlmZ ddlmZmZ ddlmZ ddl m Z ddlmZ ddl mZmZmZmZ dd lmZmZmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ed� Z ed� Z! ed� Z"d� Z# G d� de� Z$ G d� de� Z% G d� de� Z& G d� de� Z' ee! d� ee d� ee" d� G d� de� � � � Z( ee d � G d!� d"e� � Z) G d#� d$e� Z* ee! d� e ed%� d&� G d'� d(e� � � Z+ G d)� d*ejX ejZ � Z. G d+� d,e� Z/ G d-� d.ejX ejZ � Z0 G d/� d0ejX ejZ � Z1 G d1� d2ejX ejZ � Z2 G d3� d4ejX ejZ � Z3 G d5� d6e� Z4y)7z L{twisted.cred.strcred}. � N)�StringIO)�Sequence�Type)�skipIf)� Interface)�plugin)�checkers�credentials�error�strcred)�cred_anonymous� cred_file� cred_unix)�usage)�UserDatabase)�FilePath)� requireModule)�TestCase�crypt�pwd�spwdc �� � d} | t j � D �cg c] }|j �� c}v r4| dz } | t j � D �cg c] }|j �� c}v r�4| S c c}w c c}w )zC Helper method to produce an auth type that doesn't exist. �ThisPluginDoesNotExist�_)r �findCheckerFactories�authType)�invalidAuthType�factorys �@/usr/lib/python3/dist-packages/twisted/cred/test/test_strcred.py�getInvalidAuthTyper s} � � /�O� �(/�(D�(D�(F��$����� � �3��� �(/�(D�(D�(F��$����� � ��� �� s �A'� A,c � � e Zd Zd� Zd� Zy)�PublicAPITestsc �� � t � }| j t j t j |� | j t j t j |� y)z9 The description string cannot be empty. N�r �assertRaisesr �InvalidAuthType�makeChecker�findCheckerFactory��self�iats r �test_emptyDescriptionz$PublicAPITests.test_emptyDescription+ �H � � !�"�����'�1�1�7�3F�3F��L����'�1�1�7�3M�3M�s�S� c �� � t � }| j t j t j |� | j t j t j |� y)z@ An unrecognized auth type raises an exception. Nr$ r) s r �test_invalidAuthTypez#PublicAPITests.test_invalidAuthType3 r- r. N)�__name__� __module__�__qualname__r, r0 � r. r r"