MCPcopy
hub / github.com/scrapy/scrapy / test_single_value

Method test_single_value

tests/test_http_headers.py:29–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 ]
28
29 def test_single_value(self):
30 h = Headers()
31 h["Content-Type"] = "text/html"
32 assert h["Content-Type"] == b"text/html"
33 assert h.get("Content-Type") == b"text/html"
34 assert h.getlist("Content-Type") == [b"text/html"]
35
36 def test_multivalue(self):
37 h = Headers()

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
getlistMethod · 0.95
HeadersClass · 0.90

Tested by

no test coverage detected