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

Method testRead100

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

Source from the content-addressed store, hash-verified

185 self.assertEqual(text, self.TEXT * 5)
186
187 def testRead100(self):
188 self.createTempFile()
189 with BZ2File(self.filename) as bz2f:
190 self.assertEqual(bz2f.read(100), self.TEXT[:100])
191
192 def testPeek(self):
193 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