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

Method test_7bit_input

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

Source from the content-addressed store, hash-verified

1840 eq(msg.get_payload(), 'hello there')
1841
1842 def test_7bit_input(self):
1843 eq = self.assertEqual
1844 msg = MIMEText('hello there', _charset='us-ascii')
1845 eq(msg.get_charset().input_charset, 'us-ascii')
1846 eq(msg['content-type'], 'text/plain; charset="us-ascii"')
1847
1848 def test_7bit_input_no_charset(self):
1849 eq = self.assertEqual

Callers

nothing calls this directly

Calls 3

MIMETextClass · 0.90
eqFunction · 0.85
get_charsetMethod · 0.80

Tested by

no test coverage detected