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

Method test_whitespace_keeper

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

Source from the content-addressed store, hash-verified

5334 eq(h.encode(), s)
5335
5336 def test_whitespace_keeper(self):
5337 eq = self.assertEqual
5338 s = 'Subject: =?koi8-r?b?8NLP18XSy8EgzsEgxsnOwczYztk=?= =?koi8-r?q?=CA?= zz.'
5339 parts = decode_header(s)
5340 eq(parts, [(b'Subject: ', None), (b'\xf0\xd2\xcf\xd7\xc5\xd2\xcb\xc1 \xce\xc1 \xc6\xc9\xce\xc1\xcc\xd8\xce\xd9\xca', 'koi8-r'), (b' zz.', None)])
5341 hdr = make_header(parts)
5342 eq(hdr.encode(),
5343 'Subject: =?koi8-r?b?8NLP18XSy8EgzsEgxsnOwczYztnK?= zz.')
5344
5345 def test_broken_base64_header(self):
5346 raises = self.assertRaises

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