MCPcopy Index your code
hub / github.com/python/cpython / test_parse_ns_headers_version

Method test_parse_ns_headers_version

Lib/test/test_http_cookiejar.py:211–214  ·  view source on GitHub ↗
(self, hdr)

Source from the content-addressed store, hash-verified

209 'foo=bar; Version="1"',
210 ])
211 def test_parse_ns_headers_version(self, hdr):
212 # quotes should be stripped
213 expected = [[('foo', 'bar'), ('version', '1')]]
214 self.assertEqual(parse_ns_headers([hdr]), expected)
215
216 def test_parse_ns_headers_special_names(self):
217 # names such as 'expires' are not special in first name=value pair

Callers

nothing calls this directly

Calls 2

parse_ns_headersFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected