MCPcopy
hub / github.com/scrapy/scrapy / test_has_header

Method test_has_header

tests/test_http_cookies.py:37–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 assert self.wrapped.origin_req_host == "www.example.com"
36
37 def test_has_header(self):
38 assert self.wrapped.has_header("content-type")
39 assert not self.wrapped.has_header("xxxxx")
40
41 def test_get_header(self):
42 assert self.wrapped.get_header("content-type") == "text/html"

Callers

nothing calls this directly

Calls 1

has_headerMethod · 0.80

Tested by

no test coverage detected