'If the connection is closed before the number of bytes indicated by
I{Content-Length} have been received, the L{Deferred} returned by
L{getPage} fails with L{PartialDownloadError}.'

def test_getPageBrokenDownload(self):

    d = client.getPage(self.getURL('broken'))
    d = self.assertFailure(d, client.PartialDownloadError)
    d.addCallback((lambda exc: self.assertEqual(exc.response, 'abc')))
    return d
