Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/test/__pycache__/test_memcache.cpython-39.pyc
Ðазад
a k�h�b � @ s� d Z ddlmZmZmZmZ ddlmZ ddlm Z ddl mZmZm Z mZ ddlmZ ddlmZ G dd � d �ZG d d� dee�ZG dd � d ee�ZdS )z$ Test the memcache client protocol. � )�Deferred�DeferredList�TimeoutError� gatherResults)�ConnectionDone)�Clock)�ClientError�MemCacheProtocol� NoSuchCommand�ServerError)� StringTransportWithDisconnection)�TestCasec @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*S )+�CommandMixinzO Setup and tests for basic invocation of L{MemCacheProtocol} commands. c C s t � �dS )zp Helper test method to test the resulting C{Deferred} of a L{MemCacheProtocol} command. N)�NotImplementedError��self�d�send�recv�result� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/test/test_memcache.py�_test s zCommandMixin._testc C s | � | 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 r r r �test_get"