+ def test_timeout(self):
+ """Tests a connection timeout."""
+ from twisted.internet.error import TimeoutError
+ host = 'steveholt.hopto.org'
+ self.client = Peer(host, 80)
+ self.timeout = 60
+
+ d = self.client.get('/rfc/rfc0013.txt')
+ d.addCallback(self.gotResp, 1, 1070)
+ d = self.failUnlessFailure(d, TimeoutError)
+ d.addCallback(lambda a: self.flushLoggedErrors(TimeoutError))
+ return d
+