MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_us_ascii_header

Method test_us_ascii_header

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

Source from the content-addressed store, hash-verified

5323 eq(x, str(make_header(decode_header(s))))
5324
5325 def test_us_ascii_header(self):
5326 eq = self.assertEqual
5327 s = 'hello'
5328 x = decode_header(s)
5329 eq(x, [('hello', None)])
5330 h = make_header(x)
5331 eq(s, h.encode())
5332
5333 def test_string_charset(self):
5334 eq = self.assertEqual

Callers

nothing calls this directly

Calls 4

decode_headerFunction · 0.90
make_headerFunction · 0.90
eqFunction · 0.50
encodeMethod · 0.45

Tested by

no test coverage detected