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

Method test_string_charset

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

Source from the content-addressed store, hash-verified

5261 eq(s, h.encode())
5262
5263 def test_string_charset(self):
5264 eq = self.assertEqual
5265 h = Header()
5266 h.append('hello', 'iso-8859-1')
5267 eq(h, 'hello')
5268
5269## def test_unicode_error(self):
5270## raises = self.assertRaises

Callers

nothing calls this directly

Calls 3

appendMethod · 0.95
HeaderClass · 0.90
eqFunction · 0.85

Tested by

no test coverage detected