| Server IP : 159.223.102.202 / Your IP : 216.73.216.195 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
�
M��e�b � � � d Z ddlmZmZmZmZ ddlmZ ddlm Z ddl
mZ ddlm
Z
mZmZmZ ddlmZ G d� d � Z G d
� dee� Z G d� d
ee� Zy)z$
Test the memcache client protocol.
� )�Deferred�DeferredList�TimeoutError�
gatherResults)�ConnectionDone)�Clock)� StringTransportWithDisconnection)�ClientError�MemCacheProtocol�
NoSuchCommand�ServerError)�TestCasec � � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zy)�CommandMixinzO
Setup and tests for basic invocation of L{MemCacheProtocol} commands.
c � � t � �)zp
Helper test method to test the resulting C{Deferred} of a
L{MemCacheProtocol} command.
)�NotImplementedError��self�d�send�recv�results �</usr/lib/python3/dist-packages/twisted/test/test_memcache.py�_testzCommandMixin._test s
� �
"�#�#� c �\ � | j | j j d� ddd� S )z�
L{MemCacheProtocol.get} returns a L{Deferred} which is called back with
the value and the flag associated with the given key if the server
returns a successful result.
� foo� get foo
� VALUE foo 0 3
bar
END
�r � bar�r �proto�get�r s r �test_getzCommandMixin.test_get"