def METHOD_NAME(self):
    decompressed_body = b"foofoofoofoofoofoofoofoofoofoofoofoofoofoo"
    compressed_body = b"".join(list(gzip_app_iter([decompressed_body])))
    request = pretend.stub(accept_encoding=AcceptEncodingValidHeader("gzip"))
    response = Response(app_iter=iter([decompressed_body]))
    response.etag = "foo"
    compressor(request, response)
    assert response.content_encoding == "gzip"
    assert response.content_length is None
    assert response.body == compressed_body
    assert response.etag == "rfbezwKUdGjz6VPWDLDTvA"