MCPcopy Index your code
hub / github.com/python/cpython / test_read

Method test_read

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

Source from the content-addressed store, hash-verified

122 self.assertEqual(f.read(), data1)
123
124 def test_read(self):
125 self.test_write()
126 # Try reading.
127 with gzip.GzipFile(self.filename, 'r') as f:
128 d = f.read()
129 self.assertEqual(d, data1*50)
130
131 def test_read1(self):
132 self.test_write()

Callers

nothing calls this directly

Calls 3

test_writeMethod · 0.95
readMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected