def test_timeout(self):
        """
        Check that the protocol does timeout at the time specified by its
        C{timeOut} attribute.
        """
        self.proto.makeConnection(StringTransport())

        # timeOut value is 3
        self.clock.pump([0, 0.5, 1.0, 1.0])
        self.assertFalse(self.proto.timedOut)
        self.clock.pump([0, 1.0])
        self.assertTrue(self.proto.timedOut)

        Check that the protocol does timeout at the time specified by its
        C{timeOut} attribute.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_policies.py