'Compression is performed on responses with compressible content.'

def test_compress_response(self):

    r = GZipMiddleware().process_response(self.req, self.resp)
    self.assertEqual(self.decompress(r.content), self.compressible_string)
    self.assertEqual(r.get('Content-Encoding'), 'gzip')
    self.assertEqual(r.get('Content-Length'), str(len(r.content)))
