'Check that setting a new value for timeout cancel the previous value
and install a new timeout.'

def test_resetTimeout(self):

    self.proto.timeOut = None
    self.proto.makeConnection(StringTransport())
    self.proto.setTimeout(1)
    self.assertEqual(self.proto.timeOut, 1)
    self.clock.pump([0, 0.9])
    self.assertFalse(self.proto.timedOut)
    self.clock.pump([0, 0.2])
    self.assertTrue(self.proto.timedOut)
