(self)
| 212 | f.flush() |
| 213 | |
| 214 | def test_append(self): |
| 215 | self.test_write() |
| 216 | # Append to the previous file |
| 217 | with gzip.GzipFile(self.filename, 'ab') as f: |
| 218 | f.write(data2 * 15) |
| 219 | |
| 220 | with gzip.GzipFile(self.filename, 'rb') as f: |
| 221 | d = f.read() |
| 222 | self.assertEqual(d, (data1*50) + (data2*15)) |
| 223 | |
| 224 | def test_many_append(self): |
| 225 | # Bug #1074261 was triggered when reading a file that contained |
nothing calls this directly
no test coverage detected