MCPcopy
hub / github.com/scrapy/scrapy / test_headers

Method test_headers

tests/test_command_fetch.py:28–32  ·  view source on GitHub ↗
(self, mockserver: MockServer)

Source from the content-addressed store, hash-verified

26 assert "downloader/response_status_count/200" not in err
27
28 def test_headers(self, mockserver: MockServer) -> None:
29 _, out, _ = proc("fetch", mockserver.url("/text"), "--headers")
30 out = out.replace("\r", "") # required on win32
31 assert "Server: TwistedWeb" in out
32 assert "Content-Type: text/plain" in out
33
34 def test_no_reactor(self, mockserver: MockServer) -> None:
35 _, out, _ = proc(

Callers

nothing calls this directly

Calls 3

procFunction · 0.90
urlMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected