#NEWLINE# def test_pipelining( self ) : #NEWLINE# #INDENT# '\n        Multiple requests can be sent subsequently to the server, and the\n        protocol orders the responses correctly and dispatch to the\n        corresponding client command.\n        ' #NEWLINE# d1 = self . proto . get ( 'foo' ) #NEWLINE# d1 . addCallback ( self . assertEquals , ( 0 , 'bar' ) ) #NEWLINE# d2 = self . proto . set ( 'bar' , 'spamspamspam' ) #NEWLINE# d2 . addCallback ( self . assertEquals , True ) #NEWLINE# d3 = self . proto . get ( 'egg' ) #NEWLINE# d3 . addCallback ( self . assertEquals , ( 0 , 'spam' ) ) #NEWLINE# self . assertEquals ( self . transport . value ( ) , 'get foo\r\nset bar 0 0 12\r\nspamspamspam\r\nget egg\r\n' ) #NEWLINE# self . proto . dataReceived ( 'VALUE foo 0 3\r\nbar\r\nEND\r\nSTORED\r\nVALUE egg 0 4\r\nspam\r\nEND\r\n' ) #NEWLINE# return gatherResults ( [ self , d2 , d3 ] )