mirror of https://github.com/scrapy/scrapy.git
Minor adjustment to the test case in tests/test_downloadermiddleware_httpcompression.py
This commit is contained in:
parent
50e1f35d1f
commit
6032a9a310
|
|
@ -101,7 +101,8 @@ class HttpCompressionTest(TestCase):
|
|||
newresponse = self.mw.process_response(request, response, self.spider)
|
||||
if raw_content is None:
|
||||
raw_content = newresponse.body
|
||||
assert raw_content == newresponse.body
|
||||
else:
|
||||
assert raw_content == newresponse.body
|
||||
assert newresponse is not response
|
||||
assert newresponse.body.startswith(b"<!DOCTYPE")
|
||||
assert 'Content-Encoding' not in newresponse.headers
|
||||
|
|
|
|||
Loading…
Reference in New Issue