'Compression is performed on responses with a status other than 200
(#10762).'

def test_compress_non_200_response(self):

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