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

Method test_rfc2047_rfc2047_1

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

Source from the content-addressed store, hash-verified

2508 [(b'andr\xe9=zz', 'iso-8859-1')])
2509
2510 def test_rfc2047_rfc2047_1(self):
2511 # 1st testcase at end of RFC 2047
2512 s = '(=?ISO-8859-1?Q?a?=)'
2513 self.assertEqual(decode_header(s),
2514 [(b'(', None), (b'a', 'iso-8859-1'), (b')', None)])
2515
2516 def test_rfc2047_rfc2047_2(self):
2517 # 2nd testcase at end of RFC 2047

Callers

nothing calls this directly

Calls 2

decode_headerFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected