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

Method testReadLines

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

Source from the content-addressed store, hash-verified

224 self.assertEqual(bz2f.readline(), line)
225
226 def testReadLines(self):
227 self.createTempFile()
228 with BZ2File(self.filename) as bz2f:
229 self.assertRaises(TypeError, bz2f.readlines, None)
230 self.assertEqual(bz2f.readlines(), self.TEXT_LINES)
231
232 def testReadLinesMultiStream(self):
233 self.createTempFile(streams=5)

Callers

nothing calls this directly

Calls 5

createTempFileMethod · 0.95
BZ2FileClass · 0.90
assertRaisesMethod · 0.45
assertEqualMethod · 0.45
readlinesMethod · 0.45

Tested by

no test coverage detected