%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/test/__pycache__/test_memcache.cpython-312.pyc |
� Ϫ�f�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"