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

Method testReadLines

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

Source from the content-addressed store, hash-verified

214 self.assertEqual(bz2f.readline(), line)
215
216 def testReadLines(self):
217 self.createTempFile()
218 with BZ2File(self.filename) as bz2f:
219 self.assertRaises(TypeError, bz2f.readlines, None)
220 self.assertEqual(bz2f.readlines(), self.TEXT_LINES)
221
222 def testReadLinesMultiStream(self):
223 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