

def test_binary_response(self):
    req = Request('http://example.com/')
    resp = Response('http://example.com/', body=b'foobar\x00\x01\x02', request=resp2)
    resp2 = self.mw.process_response(req, resp, self.spider)
    self.assertIs(resp, resp2)

dataset/ETHPy150Open scrapy/scrapy/tests/test_downloadermiddleware_ajaxcrawlable.py AjaxCrawlMiddlewareTest.test_binary_response/VarMisuse@29/56 `req`->`resp2`