Current File : //usr/lib/python3/dist-packages/twisted/words/test/__pycache__/test_basesupport.cpython-312.pyc |
�
Ϫ�f� � � � d dl mZmZ d dlmZ d dlmZ G d� dej � Z G d� d� Z G d� d ej � Zy
)� )�defer�error)�unittest)�basesupportc �* � e Zd ZdZdZdZd� Zd� Zd� Zy)�DummyAccountzO
An account object that will do nothing when asked to start to log on.
Fc �L � t j � | _ | j S )z�
Set self.loginDeferred to the same as the deferred returned, allowing a
testcase to .callback or .errback.
@return: A deferred.
)r �Deferred�
loginDeferred)�self�argss �E/usr/lib/python3/dist-packages/twisted/words/test/test_basesupport.py�_startLogOnzDummyAccount._startLogOn s � � #�^�^�-����!�!�!� c �P � d| _ t j j | |� S �NT)�loginHasFailedr �AbstractAccount�_loginFailed�r �results r r zDummyAccount._loginFailed s# � �"����*�*�7�7��f�E�Er c �P � d| _ t j j | |� S r )�loginCallbackCalledr r � _cb_logOnr s r r zDummyAccount._cb_logOn s# � �#'�� ��*�*�4�4�T�6�B�Br N) �__name__�
__module__�__qualname__�__doc__r r r r r � r r r r s% � �� �N���"�F�Cr r c � � e Zd ZdZdZd� Zy)�DummyUIzT
Provide just the interface required to be passed to AbstractAccount.logOn.
Fc � � d| _ y r )�clientRegisteredr s r �registerAccountClientzDummyUI.registerAccountClient+ s
� � $��r N)r r r r r# r$ r r r r! r! $ s � �� ��%r r! c �* � e Zd Zd� Zd� Zd� Zd� Zd� Zy)�ClientMsgTestsc � � t � S )N)r! �r s r �makeUIzClientMsgTests.makeUI0 s
� ��y�r c �"