'If the timeout indicated by the C{timeout} parameter to
L{client.HTTPDownloader.__init__} elapses without the complete response
being received, the L{defer.Deferred} returned by
L{client.downloadPage} fires with a L{Failure} wrapping a
L{defer.TimeoutError}.'

def test_downloadTimeout(self):

    self.cleanupServerConnections = 2
    first = client.downloadPage(self.getURL('wait'), self.mktemp(), timeout=0.01)
    second = client.downloadPage(self.getURL('write-then-wait'), self.mktemp(), timeout=0.01)
    return defer.gatherResults([self.assertFailure(first, defer.TimeoutError), self.assertFailure(second, defer.TimeoutError)])
