(self)
| 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 |
nothing calls this directly
no test coverage detected