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

Method testRead100

Lib/test/test_bz2.py:177–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175 self.assertEqual(text, self.TEXT * 5)
176
177 def testRead100(self):
178 self.createTempFile()
179 with BZ2File(self.filename) as bz2f:
180 self.assertEqual(bz2f.read(100), self.TEXT[:100])
181
182 def testPeek(self):
183 self.createTempFile()

Callers

nothing calls this directly

Calls 4

createTempFileMethod · 0.95
BZ2FileClass · 0.90
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected