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

Method test_get_charsets

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

Source from the content-addressed store, hash-verified

141 msg.attach, sub_msg)
142
143 def test_get_charsets(self):
144 eq = self.assertEqual
145
146 msg = self._msgobj('msg_08.txt')
147 charsets = msg.get_charsets()
148 eq(charsets, [None, 'us-ascii', 'iso-8859-1', 'iso-8859-2', 'koi8-r'])
149
150 msg = self._msgobj('msg_09.txt')
151 charsets = msg.get_charsets('dingbat')
152 eq(charsets, ['dingbat', 'us-ascii', 'iso-8859-1', 'dingbat',
153 'koi8-r'])
154
155 msg = self._msgobj('msg_12.txt')
156 charsets = msg.get_charsets()
157 eq(charsets, [None, 'us-ascii', 'iso-8859-1', None, 'iso-8859-2',
158 'iso-8859-3', 'us-ascii', 'koi8-r'])
159
160 def test_get_filename(self):
161 eq = self.assertEqual

Callers

nothing calls this directly

Calls 3

get_charsetsMethod · 0.80
eqFunction · 0.50
_msgobjMethod · 0.45

Tested by

no test coverage detected