(self)
| 1846 | eq(msg['content-type'], 'text/plain; charset="us-ascii"') |
| 1847 | |
| 1848 | def test_7bit_input_no_charset(self): |
| 1849 | eq = self.assertEqual |
| 1850 | msg = MIMEText('hello there') |
| 1851 | eq(msg.get_charset(), 'us-ascii') |
| 1852 | eq(msg['content-type'], 'text/plain; charset="us-ascii"') |
| 1853 | self.assertIn('hello there', msg.as_string()) |
| 1854 | |
| 1855 | def test_utf8_input(self): |
| 1856 | teststr = '\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430' |
nothing calls this directly
no test coverage detected