'Make sure that writing data to a transport from a protocol
constructed by a TimeoutFactory resets the timeout countdown.'

def test_sendAvoidsTimeout(self):

    self.clock.pump([0.0, 0.5, 1.0])
    self.assertFalse(self.proto.wrappedProtocol.disconnected)
    self.proto.write('bytes    bytes    bytes')
    self.clock.pump([0.0, 1.0, 1.0])
    self.assertFalse(self.proto.wrappedProtocol.disconnected)
    self.proto.writeSequence((['bytes'] * 3))
    self.clock.pump([0.0, 1.0, 1.0])
    self.assertFalse(self.proto.wrappedProtocol.disconnected)
    self.clock.pump([0.0, 2.0])
    self.assertTrue(self.proto.wrappedProtocol.disconnected)
