#NEWLINE# def test_timeOutStat( self ) : #NEWLINE# #INDENT# '\n        Test the timeout when stat command has started: the timeout is not\n        reset until the final B{END} is received.\n        ' #NEWLINE# d1 = self . proto . stats ( ) #NEWLINE# d2 = Deferred ( ) #NEWLINE# self . proto . connectionLost = d2 . callback #NEWLINE# self . proto . dataReceived ( 'STAT foo bar\r\n' ) #NEWLINE# self . clock . advance ( d1 . proto . persistentTimeOut ) #NEWLINE# self . assertFailure ( d1 , TimeoutError ) #NEWLINE# return gatherResults ( [ d1 , d2 ] )