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

Method test_7bit_input

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

Source from the content-addressed store, hash-verified

1818 eq(msg.get_payload(), 'hello there')
1819
1820 def test_7bit_input(self):
1821 eq = self.assertEqual
1822 msg = MIMEText('hello there', _charset='us-ascii')
1823 eq(msg.get_charset().input_charset, 'us-ascii')
1824 eq(msg['content-type'], 'text/plain; charset="us-ascii"')
1825
1826 def test_7bit_input_no_charset(self):
1827 eq = self.assertEqual

Callers

nothing calls this directly

Calls 3

MIMETextClass · 0.90
get_charsetMethod · 0.80
eqFunction · 0.50

Tested by

no test coverage detected