%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/twisted/cred/test/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/twisted/cred/test/__pycache__/test_digestauth.cpython-312.pyc |
� Ϫ�f�] � � � d Z ddlZddlmZ ddlmZmZ ddlmZ ddl m Z mZmZm Z mZ ddlmZ ddlmZ dd lmZ dd lmZ d� Z G d� d e � Z G d� de� Zy)z[ Tests for L{twisted.cred._digest} and the associated bits in L{twisted.cred.credentials}. � N)�hexlify)�md5�sha1)�verifyObject)�DigestCredentialFactory�IUsernameDigestHash�calcHA1�calcHA2�calcResponse)�LoginFailed)�IPv4Address)� networkString)�TestCasec �H � t j | � j � S )N)�base64� b64encode�strip)�ss �C/usr/lib/python3/dist-packages/twisted/cred/test/test_digestauth.pyr r s � ����A��$�$�&�&� c �. � � e Zd ZdZ� fd�Zd� Zd� Z� xZS )�FakeDigestCredentialFactoryz\ A Fake Digest Credential Factory that generates a predictable nonce and opaque c �2 �� t �| � |i |�� d| _ y )N� 0)�super�__init__� privateKey)�self�args�kwargs� __class__s �r r z$FakeDigestCredentialFactory.__init__'