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

Method test_append

Lib/test/test_gzip.py:215–223  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

test_writeMethod · 0.95
writeMethod · 0.45
readMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected