Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str TupleLoad Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str TupleLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str Str Dict Str Str TupleLoad Num Str TupleLoad Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str Str Dict Str Str TupleLoad Num Str TupleLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Str Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Str Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Num Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Num Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num For NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub BinOpMult Num AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad ListLoad NameLoad NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Num Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Num Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Num Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str BinOpMult Str Num NameLoad Return Call NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Num Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Num NameLoad Return Call NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Call NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Str TupleLoad Num Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Str TupleLoad Num Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str NameLoad Str Str Dict Str Str TupleLoad Num Str Str TupleLoad Num Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str NameLoad Str Str Dict Str Str TupleLoad Num Str NameLoad TupleLoad Num Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword Str Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword Str Str Str NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Test the memcache client protocol.
 twisted.internet.error ConnectionDone twisted.protocols.memcache MemCacheProtocol NoSuchCommand twisted.protocols.memcache ClientError ServerError twisted.trial.unittest TestCase twisted.test.proto_helpers StringTransportWithDisconnection twisted.internet.task Clock twisted.internet.defer Deferred gatherResults TimeoutError twisted.internet.defer DeferredList CommandMixin N/A N/A N/A 
    Setup and tests for basic invocation of L{MemCacheProtocol} commands.
     _test N/A N/A self d send recv result N/A N/A N/A 
        Helper test method to test the resulting C{Deferred} of a
        L{MemCacheProtocol} command.
         N/A N/A NotImplementedError N/A test_get N/A N/A self N/A N/A N/A 
        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.
         N/A N/A N/A self _test N/A N/A N/A self proto get foo get foo
 VALUE foo 0 3
bar
END
 N/A 0 bar N/A test_emptyGet N/A N/A self N/A N/A N/A 
        Test getting a non-available key: it succeeds but return C{None} as
        value and C{0} as flag.
         N/A N/A N/A self _test N/A N/A N/A self proto get foo get foo
 END
 N/A 0 None N/A test_getMultiple N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.getMultiple} returns a L{Deferred} which is called
        back with a dictionary of flag, value for each given key.
         N/A N/A N/A self _test N/A N/A N/A self proto getMultiple N/A foo cow get foo cow
 VALUE foo 0 3
bar
VALUE cow 0 7
chicken
END
 N/A cow foo N/A 0 chicken N/A 0 bar N/A test_getMultipleWithEmpty N/A N/A self N/A N/A N/A 
        When L{MemCacheProtocol.getMultiple} is called with non-available keys,
        the corresponding tuples are (0, None).
         N/A N/A N/A self _test N/A N/A N/A self proto getMultiple N/A foo cow get foo cow
 VALUE cow 1 3
bar
END
 N/A cow foo N/A 1 bar N/A 0 None N/A test_set N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.set} returns a L{Deferred} which is called back with
        C{True} when the operation succeeds.
         N/A N/A N/A self _test N/A N/A N/A self proto set foo bar set foo 0 0 3
bar
 STORED
 True N/A test_add N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.add} returns a L{Deferred} which is called back with
        C{True} when the operation succeeds.
         N/A N/A N/A self _test N/A N/A N/A self proto add foo bar add foo 0 0 3
bar
 STORED
 True N/A test_replace N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.replace} returns a L{Deferred} which is called back
        with C{True} when the operation succeeds.
         N/A N/A N/A self _test N/A N/A N/A self proto replace foo bar replace foo 0 0 3
bar
 STORED
 True N/A test_errorAdd N/A N/A self N/A N/A N/A 
        Test an erroneous add: if a L{MemCacheProtocol.add} is called but the
        key already exists on the server, it returns a B{NOT STORED} answer,
        which calls back the resulting L{Deferred} with C{False}.
         N/A N/A N/A self _test N/A N/A N/A self proto add foo bar add foo 0 0 3
bar
 NOT STORED
 False N/A test_errorReplace N/A N/A self N/A N/A N/A 
        Test an erroneous replace: if a L{MemCacheProtocol.replace} is called
        but the key doesn't exist on the server, it returns a B{NOT STORED}
        answer, which calls back the resulting L{Deferred} with C{False}.
         N/A N/A N/A self _test N/A N/A N/A self proto replace foo bar replace foo 0 0 3
bar
 NOT STORED
 False N/A test_delete N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.delete} returns a L{Deferred} which is called back
        with C{True} when the server notifies a success.
         N/A N/A N/A self _test N/A N/A N/A self proto delete bar delete bar
 DELETED
 True N/A test_errorDelete N/A N/A self N/A N/A N/A 
        Test a error during a delete: if key doesn't exist on the server, it
        returns a B{NOT FOUND} answer which calls back the resulting
        L{Deferred} with C{False}.
         N/A N/A N/A self _test N/A N/A N/A self proto delete bar delete bar
 NOT FOUND
 False N/A test_increment N/A N/A self N/A N/A N/A 
        Test incrementing a variable: L{MemCacheProtocol.increment} returns a
        L{Deferred} which is called back with the incremented value of the
        given key.
         N/A N/A N/A self _test N/A N/A N/A self proto increment foo incr foo 1
 4
 4 N/A test_decrement N/A N/A self N/A N/A N/A 
        Test decrementing a variable: L{MemCacheProtocol.decrement} returns a
        L{Deferred} which is called back with the decremented value of the
        given key.
         N/A N/A N/A self _test N/A N/A N/A self proto decrement foo decr foo 1
 5
 5 N/A test_incrementVal N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.increment} takes an optional argument C{value} which
        replaces the default value of 1 when specified.
         N/A N/A N/A self _test N/A N/A N/A self proto increment foo 8 incr foo 8
 4
 4 N/A test_decrementVal N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.decrement} takes an optional argument C{value} which
        replaces the default value of 1 when specified.
         N/A N/A N/A self _test N/A N/A N/A self proto decrement foo 3 decr foo 3
 5
 5 N/A test_stats N/A N/A self N/A N/A N/A 
        Test retrieving server statistics via the L{MemCacheProtocol.stats}
        command: it parses the data sent by the server and calls back the
        resulting L{Deferred} with a dictionary of the received statistics.
         N/A N/A N/A self _test N/A N/A N/A self proto stats stats
 STAT foo bar
STAT egg spam
END
 N/A foo egg bar spam N/A test_statsWithArgument N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.stats} takes an optional C{str} argument which,
        if specified, is sent along with the I{STAT} command.  The I{STAT}
        responses from the server are parsed as key/value pairs and returned
        as a C{dict} (as in the case where the argument is not specified).
         N/A N/A N/A self _test N/A N/A N/A self proto stats blah stats blah
 STAT foo bar
STAT egg spam
END
 N/A foo egg bar spam N/A test_version N/A N/A self N/A N/A N/A 
        Test version retrieval via the L{MemCacheProtocol.version} command: it
        returns a L{Deferred} which is called back with the version sent by the
        server.
         N/A N/A N/A self _test N/A N/A N/A self proto version version
 VERSION 1.1
 1.1 N/A test_flushAll N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.flushAll} returns a L{Deferred} which is called back
        with C{True} if the server acknowledges success.
         N/A N/A N/A self _test N/A N/A N/A self proto flushAll flush_all
 OK
 True N/A N/A MemCacheTestCase N/A CommandMixin TestCase N/A N/A 
    Test client protocol class L{MemCacheProtocol}.
     setUp N/A N/A self N/A N/A N/A 
        Create a memcache client, connect it to a string protocol, and make it
        use a deterministic clock.
         N/A N/A self proto N/A MemCacheProtocol N/A N/A self clock N/A Clock N/A N/A N/A self proto callLater N/A N/A self clock callLater N/A N/A self transport N/A StringTransportWithDisconnection N/A N/A N/A self transport protocol N/A self proto N/A N/A N/A N/A self proto makeConnection N/A self transport N/A _test N/A N/A self d send recv result N/A N/A N/A 
        Implementation of C{_test} which checks that the command sends C{send}
        data, and that upon reception of C{recv} the result is C{result}.

        @param d: the resulting deferred from the memcache command.
        @type d: C{Deferred}

        @param send: the expected data to be sent.
        @type send: C{str}

        @param recv: the data to simulate as reception.
        @type recv: C{str}

        @param result: the expected result.
        @type result: C{any}
         cb N/A N/A res N/A N/A N/A N/A N/A self assertEqual res result N/A N/A N/A N/A self assertEqual N/A N/A N/A self transport value send N/A N/A N/A d addCallback cb N/A N/A N/A N/A self proto dataReceived recv N/A d N/A test_invalidGetResponse N/A N/A self N/A N/A N/A 
        If the value returned doesn't match the expected key of the current
        C{get} command, an error is raised in L{MemCacheProtocol.dataReceived}.
         N/A N/A N/A N/A self proto get foo N/A s spamegg N/A N/A N/A self assertRaises RuntimeError N/A N/A self proto dataReceived N/A VALUE bar 0 %s
%s
END
 N/A N/A len s s N/A test_invalidMultipleGetResponse N/A N/A self N/A N/A N/A 
        If the value returned doesn't match one the expected keys of the
        current multiple C{get} command, an error is raised error in
        L{MemCacheProtocol.dataReceived}.
         N/A N/A N/A N/A self proto getMultiple N/A foo bar N/A s spamegg N/A N/A N/A self assertRaises RuntimeError N/A N/A self proto dataReceived N/A VALUE egg 0 %s
%s
END
 N/A N/A len s s N/A test_timeOut N/A N/A self N/A N/A N/A 
        Test the timeout on outgoing requests: when timeout is detected, all
        current commands fail with a L{TimeoutError}, and the connection is
        closed.
         N/A d1 N/A N/A N/A self proto get foo N/A d2 N/A N/A N/A self proto get bar N/A d3 N/A Deferred N/A N/A N/A self proto connectionLost N/A d3 callback N/A N/A N/A N/A self clock advance N/A N/A self proto persistentTimeOut N/A N/A N/A self assertFailure d1 TimeoutError N/A N/A N/A self assertFailure d2 TimeoutError checkMessage N/A N/A error N/A N/A N/A N/A N/A self assertEqual N/A str error Connection timeout N/A N/A N/A N/A d1 addCallback checkMessage N/A N/A N/A self assertFailure d3 ConnectionDone N/A N/A gatherResults N/A d1 d2 d3 N/A test_timeoutRemoved N/A N/A self N/A N/A N/A 
        When a request gets a response, no pending timeout call remains around.
         N/A d N/A N/A N/A self proto get foo N/A N/A N/A N/A self clock advance N/A N/A N/A self proto persistentTimeOut 1 N/A N/A N/A N/A self proto dataReceived VALUE foo 0 3
bar
END
 check N/A N/A result N/A N/A N/A N/A N/A self assertEqual result N/A 0 bar N/A N/A N/A self assertEqual N/A len N/A N/A self clock calls 0 N/A N/A N/A N/A d addCallback check N/A d N/A test_timeOutRaw N/A N/A self N/A N/A N/A 
        Test the timeout when raw mode was started: the timeout is not reset
        until all the data has been received, so we can have a L{TimeoutError}
        when waiting for raw data.
         N/A d1 N/A N/A N/A self proto get foo N/A d2 N/A Deferred N/A N/A N/A self proto connectionLost N/A d2 callback N/A N/A N/A N/A self proto dataReceived VALUE foo 0 10
12345 N/A N/A N/A N/A self clock advance N/A N/A self proto persistentTimeOut N/A N/A N/A self assertFailure d1 TimeoutError N/A N/A N/A self assertFailure d2 ConnectionDone N/A N/A gatherResults N/A d1 d2 N/A test_timeOutStat N/A N/A self N/A N/A N/A 
        Test the timeout when stat command has started: the timeout is not
        reset until the final B{END} is received.
         N/A d1 N/A N/A N/A self proto stats N/A d2 N/A Deferred N/A N/A N/A self proto connectionLost N/A d2 callback N/A N/A N/A N/A self proto dataReceived STAT foo bar
 N/A N/A N/A N/A self clock advance N/A N/A self proto persistentTimeOut N/A N/A N/A self assertFailure d1 TimeoutError N/A N/A N/A self assertFailure d2 ConnectionDone N/A N/A gatherResults N/A d1 d2 N/A test_timeoutPipelining N/A N/A self N/A N/A N/A 
        When two requests are sent, a timeout call remains around for the
        second request, and its timeout time is correct.
         N/A d1 N/A N/A N/A self proto get foo N/A d2 N/A N/A N/A self proto get bar N/A d3 N/A Deferred N/A N/A N/A self proto connectionLost N/A d3 callback N/A N/A N/A N/A self clock advance N/A N/A N/A self proto persistentTimeOut 1 N/A N/A N/A N/A self proto dataReceived VALUE foo 0 3
bar
END
 check N/A N/A result N/A N/A N/A N/A N/A self assertEqual result N/A 0 bar N/A N/A N/A self assertEqual N/A len N/A N/A self clock calls 1 N/A i N/A range N/A N/A self proto persistentTimeOut N/A N/A N/A N/A N/A self clock advance 1 N/A N/A N/A N/A N/A self assertFailure d2 TimeoutError addCallback checkTime N/A checkTime N/A N/A ignored N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A self clock seconds N/A N/A 2 N/A N/A self proto persistentTimeOut 1 N/A N/A N/A N/A d1 addCallback check N/A N/A N/A self assertFailure d3 ConnectionDone N/A d1 N/A test_timeoutNotReset N/A N/A self N/A N/A N/A 
        Check that timeout is not resetted for every command, but keep the
        timeout from the first command without response.
         N/A d1 N/A N/A N/A self proto get foo N/A d3 N/A Deferred N/A N/A N/A self proto connectionLost N/A d3 callback N/A N/A N/A N/A self clock advance N/A N/A N/A self proto persistentTimeOut 1 N/A d2 N/A N/A N/A self proto get bar N/A N/A N/A N/A self clock advance 1 N/A N/A N/A self assertFailure d1 TimeoutError N/A N/A N/A self assertFailure d2 TimeoutError N/A N/A N/A self assertFailure d3 ConnectionDone N/A N/A gatherResults N/A d1 d2 d3 N/A test_timeoutCleanDeferreds N/A N/A self N/A N/A N/A 
        C{timeoutConnection} cleans the list of commands that it fires with
        C{TimeoutError}: C{connectionLost} doesn't try to fire them again, but
        sets the disconnected state so that future commands fail with a
        C{RuntimeError}.
         N/A d1 N/A N/A N/A self proto get foo N/A N/A N/A N/A self clock advance N/A N/A self proto persistentTimeOut N/A N/A N/A self assertFailure d1 TimeoutError N/A d2 N/A N/A N/A self proto get bar N/A N/A N/A self assertFailure d2 RuntimeError N/A N/A gatherResults N/A d1 d2 N/A test_connectionLost N/A N/A self N/A N/A N/A 
        When disconnection occurs while commands are still outstanding, the
        commands fail.
         N/A d1 N/A N/A N/A self proto get foo N/A d2 N/A N/A N/A self proto get bar N/A N/A N/A N/A self transport loseConnection N/A done N/A DeferredList N/A d1 d2 consumeErrors True checkFailures N/A N/A results N/A N/A N/A N/A success result results N/A N/A N/A N/A self assertFalse success N/A N/A N/A result trap ConnectionDone N/A N/A N/A N/A done addCallback checkFailures N/A test_tooLongKey N/A N/A self N/A N/A N/A 
        An error is raised when trying to use a too long key: the called
        command returns a L{Deferred} which fails with a L{ClientError}.
         N/A d1 N/A N/A self assertFailure N/A N/A N/A self proto set N/A a 500 bar ClientError N/A d2 N/A N/A self assertFailure N/A N/A N/A self proto increment N/A a 500 ClientError N/A d3 N/A N/A self assertFailure N/A N/A N/A self proto get N/A a 500 ClientError N/A d4 N/A N/A self assertFailure N/A N/A N/A self proto append N/A a 500 bar ClientError N/A d5 N/A N/A self assertFailure N/A N/A N/A self proto prepend N/A a 500 bar ClientError N/A d6 N/A N/A self assertFailure N/A N/A N/A self proto getMultiple N/A foo N/A a 500 ClientError N/A N/A gatherResults N/A d1 d2 d3 d4 d5 d6 N/A test_invalidCommand N/A N/A self N/A N/A N/A 
        When an unknown command is sent directly (not through public API), the
        server answers with an B{ERROR} token, and the command fails with
        L{NoSuchCommand}.
         N/A d N/A N/A N/A self proto _set egg foo bar 0 0 N/A N/A N/A self assertEqual N/A N/A N/A self transport value egg foo 0 0 3
bar
 N/A N/A N/A self assertFailure d NoSuchCommand N/A N/A N/A N/A self proto dataReceived ERROR
 N/A d N/A test_clientError N/A N/A self N/A N/A N/A 
        Test the L{ClientError} error: when the server sends a B{CLIENT_ERROR}
        token, the originating command fails with L{ClientError}, and the error
        contains the text sent by the server.
         N/A a eggspamm N/A d N/A N/A N/A self proto set foo a N/A N/A N/A self assertEqual N/A N/A N/A self transport value set foo 0 0 8
eggspamm
 N/A N/A N/A self assertFailure d ClientError check N/A N/A err N/A N/A N/A N/A N/A self assertEqual N/A str err We don't like egg and spam N/A N/A N/A N/A d addCallback check N/A N/A N/A N/A self proto dataReceived CLIENT_ERROR We don't like egg and spam
 N/A d N/A test_serverError N/A N/A self N/A N/A N/A 
        Test the L{ServerError} error: when the server sends a B{SERVER_ERROR}
        token, the originating command fails with L{ServerError}, and the error
        contains the text sent by the server.
         N/A a eggspamm N/A d N/A N/A N/A self proto set foo a N/A N/A N/A self assertEqual N/A N/A N/A self transport value set foo 0 0 8
eggspamm
 N/A N/A N/A self assertFailure d ServerError check N/A N/A err N/A N/A N/A N/A N/A self assertEqual N/A str err zomg N/A N/A N/A N/A d addCallback check N/A N/A N/A N/A self proto dataReceived SERVER_ERROR zomg
 N/A d N/A test_unicodeKey N/A N/A self N/A N/A N/A 
        Using a non-string key as argument to commands raises an error.
         N/A d1 N/A N/A self assertFailure N/A N/A N/A self proto set foo bar ClientError N/A d2 N/A N/A self assertFailure N/A N/A N/A self proto increment egg ClientError N/A d3 N/A N/A self assertFailure N/A N/A N/A self proto get 1 ClientError N/A d4 N/A N/A self assertFailure N/A N/A N/A self proto delete bar ClientError N/A d5 N/A N/A self assertFailure N/A N/A N/A self proto append foo bar ClientError N/A d6 N/A N/A self assertFailure N/A N/A N/A self proto prepend foo bar ClientError N/A d7 N/A N/A self assertFailure N/A N/A N/A self proto getMultiple N/A egg 1 ClientError N/A N/A gatherResults N/A d1 d2 d3 d4 d5 d6 d7 N/A test_unicodeValue N/A N/A self N/A N/A N/A 
        Using a non-string value raises an error.
         N/A N/A N/A self assertFailure N/A N/A N/A self proto set foo bar ClientError N/A test_pipelining N/A N/A self N/A N/A N/A 
        Multiple requests can be sent subsequently to the server, and the
        protocol orders the responses correctly and dispatch to the
        corresponding client command.
         N/A d1 N/A N/A N/A self proto get foo N/A N/A N/A d1 addCallback N/A self assertEqual N/A 0 bar N/A d2 N/A N/A N/A self proto set bar spamspamspam N/A N/A N/A d2 addCallback N/A self assertEqual True N/A d3 N/A N/A N/A self proto get egg N/A N/A N/A d3 addCallback N/A self assertEqual N/A 0 spam N/A N/A N/A self assertEqual N/A N/A N/A self transport value get foo
set bar 0 0 12
spamspamspam
get egg
 N/A N/A N/A N/A self proto dataReceived VALUE foo 0 3
bar
END
STORED
VALUE egg 0 4
spam
END
 N/A N/A gatherResults N/A d1 d2 d3 N/A test_getInChunks N/A N/A self N/A N/A N/A 
        If the value retrieved by a C{get} arrive in chunks, the protocol
        is able to reconstruct it and to produce the good value.
         N/A d N/A N/A N/A self proto get foo N/A N/A N/A d addCallback N/A self assertEqual N/A 0 0123456789 N/A N/A N/A self assertEqual N/A N/A N/A self transport value get foo
 N/A N/A N/A N/A self proto dataReceived VALUE foo 0 10
0123456 N/A N/A N/A N/A self proto dataReceived 789 N/A N/A N/A N/A self proto dataReceived 
END N/A N/A N/A N/A self proto dataReceived N/A d N/A test_append N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.append} behaves like a L{MemCacheProtocol.set}
        method: it returns a L{Deferred} which is called back with C{True} when
        the operation succeeds.
         N/A N/A N/A self _test N/A N/A N/A self proto append foo bar append foo 0 0 3
bar
 STORED
 True N/A test_prepend N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.prepend} behaves like a L{MemCacheProtocol.set}
        method: it returns a L{Deferred} which is called back with C{True} when
        the operation succeeds.
         N/A N/A N/A self _test N/A N/A N/A self proto prepend foo bar prepend foo 0 0 3
bar
 STORED
 True N/A test_gets N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.get} handles an additional cas result when
        C{withIdentifier} is C{True} and forward it in the resulting
        L{Deferred}.
         N/A N/A N/A self _test N/A N/A N/A self proto get foo True gets foo
 VALUE foo 0 3 1234
bar
END
 N/A 0 1234 bar N/A test_emptyGets N/A N/A self N/A N/A N/A 
        Test getting a non-available key with gets: it succeeds but return
        C{None} as value, C{0} as flag and an empty cas value.
         N/A N/A N/A self _test N/A N/A N/A self proto get foo True gets foo
 END
 N/A 0 None N/A test_getsMultiple N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.getMultiple} handles an additional cas field in the
        returned tuples if C{withIdentifier} is C{True}.
         N/A N/A N/A self _test N/A N/A N/A self proto getMultiple N/A foo bar True gets foo bar
 VALUE foo 0 3 1234
egg
VALUE bar 0 4 2345
spam
END
 N/A bar foo N/A 0 2345 spam N/A 0 1234 egg N/A test_getsMultipleWithEmpty N/A N/A self N/A N/A N/A 
        When getting a non-available key with L{MemCacheProtocol.getMultiple}
        when C{withIdentifier} is C{True}, the other keys are retrieved
        correctly, and the non-available key gets a tuple of C{0} as flag,
        C{None} as value, and an empty cas value.
         N/A N/A N/A self _test N/A N/A N/A self proto getMultiple N/A foo bar True gets foo bar
 VALUE foo 0 3 1234
egg
END
 N/A bar foo N/A 0 None N/A 0 1234 egg N/A test_checkAndSet N/A N/A self N/A N/A N/A 
        L{MemCacheProtocol.checkAndSet} passes an additional cas identifier
        that the server handles to check if the data has to be updated.
         N/A N/A N/A self _test N/A N/A N/A self proto checkAndSet foo bar cas 1234 cas foo 0 0 3 1234
bar
 STORED
 True N/A test_casUnknowKey N/A N/A self N/A N/A N/A 
        When L{MemCacheProtocol.checkAndSet} response is C{EXISTS}, the
        resulting L{Deferred} fires with C{False}.
         N/A N/A N/A self _test N/A N/A N/A self proto checkAndSet foo bar cas 1234 cas foo 0 0 3 1234
bar
 EXISTS
 False N/A N/A CommandFailureTests N/A CommandMixin TestCase N/A N/A 
    Tests for correct failure of commands on a disconnected
    L{MemCacheProtocol}.
     setUp N/A N/A self N/A N/A N/A 
        Create a disconnected memcache client, using a deterministic clock.
         N/A N/A self proto N/A MemCacheProtocol N/A N/A self clock N/A Clock N/A N/A N/A self proto callLater N/A N/A self clock callLater N/A N/A self transport N/A StringTransportWithDisconnection N/A N/A N/A self transport protocol N/A self proto N/A N/A N/A N/A self proto makeConnection N/A self transport N/A N/A N/A N/A self transport loseConnection N/A _test N/A N/A self d send recv result N/A N/A N/A 
        Implementation of C{_test} which checks that the command fails with
        C{RuntimeError} because the transport is disconnected. All the
        parameters except C{d} are ignored.
         N/A N/A N/A self assertFailure d RuntimeError N/A N/A