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

Method test_us_ascii_header

Lib/test/test_email/test_email.py:5255–5261  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5253 eq(x, str(make_header(decode_header(s))))
5254
5255 def test_us_ascii_header(self):
5256 eq = self.assertEqual
5257 s = 'hello'
5258 x = decode_header(s)
5259 eq(x, [('hello', None)])
5260 h = make_header(x)
5261 eq(s, h.encode())
5262
5263 def test_string_charset(self):
5264 eq = self.assertEqual

Callers

nothing calls this directly

Calls 4

decode_headerFunction · 0.90
make_headerFunction · 0.90
eqFunction · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected