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

Method test_read

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

Source from the content-addressed store, hash-verified

123 self.assertEqual(f.read(), data1)
124
125 def test_read(self):
126 self.test_write()
127 # Try reading.
128 with gzip.GzipFile(self.filename, 'r') as f:
129 d = f.read()
130 self.assertEqual(d, data1*50)
131
132 def test_read1(self):
133 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