(self)
| 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 |
nothing calls this directly
no test coverage detected