'Test the timeout when stat command has started: the timeout is not
reset until the final B{END} is received.'

def test_timeOutStat(self):

    d1 = self.proto.stats()
    d2 = Deferred()
    self.proto.connectionLost = d2.callback
    self.proto.dataReceived('STAT    foo    bar\r\n')
    self.clock.advance(self.proto.persistentTimeOut)
    self.assertFailure(d1, TimeoutError)
    self.assertFailure(d2, ConnectionDone)
    return gatherResults([d1, d2])
