| 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/words/test/__pycache__/ |
Upload File : |
U
W[� � @ s` d dl mZ d dlmZ d dlmZmZ G dd� dej�ZG dd� de �Z
G dd � d ej�Zd
S )� )�unittest)�basesupport)�error�deferc @ s0 e Zd ZdZdZdZdd� Zdd� Zdd� Zd S )
�DummyAccountzO
An account object that will do nothing when asked to start to log on.
Fc G s t �� | _| jS )z�
Set self.loginDeferred to the same as the deferred returned, allowing a
testcase to .callback or .errback.
@return: A deferred.
)r ZDeferred�
loginDeferred)�self�args� r
�E/usr/lib/python3/dist-packages/twisted/words/test/test_basesupport.py�_startLogOn s
zDummyAccount._startLogOnc C s d| _ tj�| |�S �NT)�loginHasFailedr �AbstractAccount�_loginFailed�r �resultr
r
r r s zDummyAccount._loginFailedc C s d| _ tj�| |�S r
)�loginCallbackCalledr r � _cb_logOnr r
r
r r s zDummyAccount._cb_logOnN) �__name__�
__module__�__qualname__�__doc__r r r r r r
r
r
r r s
r c @ s e Zd ZdZdZdd� ZdS )�DummyUIzT
Provide just the interface required to be passed to AbstractAccount.logOn.
Fc C s
d| _ d S r
)�clientRegisteredr r
r
r �registerAccountClient( s zDummyUI.registerAccountClientN)r r r r r r r
r
r
r r "