'Compression is performed on responses with streaming content.'

def test_compress_streaming_response(self):

    r = GZipMiddleware().process_response(self.req, self.stream_resp)
    self.assertEqual(self.decompress(''.join(r)), ''.join(self.sequence))
    self.assertEqual(r.get('Content-Encoding'), 'gzip')
    self.assertFalse(r.has_header('Content-Length'))
