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

Method test_string_charset

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

Source from the content-addressed store, hash-verified

5331 eq(s, h.encode())
5332
5333 def test_string_charset(self):
5334 eq = self.assertEqual
5335 h = Header()
5336 h.append('hello', 'iso-8859-1')
5337 eq(h, 'hello')
5338
5339## def test_unicode_error(self):
5340## raises = self.assertRaises

Callers

nothing calls this directly

Calls 3

appendMethod · 0.95
HeaderClass · 0.90
eqFunction · 0.50

Tested by

no test coverage detected