MCPcopy
hub / github.com/scrapy/scrapy / _assert_headers_received

Method _assert_headers_received

tests/test_engine.py:314–320  ·  view source on GitHub ↗
(run: CrawlerRun)

Source from the content-addressed store, hash-verified

312
313 @staticmethod
314 def _assert_headers_received(run: CrawlerRun) -> None:
315 for headers in run.headers.values():
316 assert b"Server" in headers
317 assert headers[b"Server"]
318 assert b"TwistedWeb" in headers[b"Server"]
319 assert b"Date" in headers
320 assert b"Content-Type" in headers
321
322 @staticmethod
323 def _assert_bytes_received(run: CrawlerRun) -> None:

Callers 2

test_crawlerMethod · 0.80
test_crawlerMethod · 0.80

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected