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

Method test_broken_base64_header

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

Source from the content-addressed store, hash-verified

5343 'Subject: =?koi8-r?b?8NLP18XSy8EgzsEgxsnOwczYztnK?= zz.')
5344
5345 def test_broken_base64_header(self):
5346 raises = self.assertRaises
5347 s = 'Subject: =?EUC-KR?B?CSixpLDtKSC/7Liuvsax4iC6uLmwMcijIKHaILzSwd/H0SC8+LCjwLsgv7W/+Mj3I ?='
5348 raises(errors.HeaderParseError, decode_header, s)
5349
5350 def test_shift_jis_charset(self):
5351 h = Header('文', charset='shift_jis')

Callers

nothing calls this directly

Calls 1

raisesFunction · 0.85

Tested by

no test coverage detected