(self)
| 1274 | ) |
| 1275 | |
| 1276 | def test_rewrite_small(self): |
| 1277 | # A SpooledTemporaryFile can be written to multiple within the max_size |
| 1278 | f = self.do_create(max_size=30) |
| 1279 | self.assertFalse(f._rolled) |
| 1280 | for i in range(5): |
| 1281 | f.seek(0, 0) |
| 1282 | f.write(b'x' * 20) |
| 1283 | self.assertFalse(f._rolled) |
| 1284 | |
| 1285 | def test_write_sequential(self): |
| 1286 | # A SpooledTemporaryFile should hold exactly max_size bytes, and roll |
nothing calls this directly
no test coverage detected