(self)
| 170 | self._non_latin_bin_msg.split(b'\n')) |
| 171 | |
| 172 | def test_add_text_file_warns(self): |
| 173 | with tempfile.TemporaryFile('w+', encoding='utf-8') as f: |
| 174 | f.write(_sample_message) |
| 175 | f.seek(0) |
| 176 | with self.assertWarns(DeprecationWarning): |
| 177 | key = self._box.add(f) |
| 178 | self.assertEqual(self._box.get_bytes(key).split(b'\n'), |
| 179 | _bytes_sample_message.split(b'\n')) |
| 180 | |
| 181 | def test_add_StringIO_warns(self): |
| 182 | with self.assertWarns(DeprecationWarning): |
nothing calls this directly
no test coverage detected