0x1949 Team - FAZEMRX - MANAGER
Edit File: test_memcache.cpython-310.pyc
o �b�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 � �)zp Helper test method to test the resulting C{Deferred} of a L{MemCacheProtocol} command. )�NotImplementedError��self�d�send�recv�result� r �</usr/lib/python3/dist-packages/twisted/test/test_memcache.py�_test s zCommandMixin._testc C � | � | 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"