| Server IP : 198.244.165.102 / Your IP : 216.73.216.218 [ Web Server : nginx/1.24.0 System : Linux modovh-ub-01 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : colleary ( 1011) PHP Version : 8.3.23 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
�
oj�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"